Neal <ne*****@yahoo.com> wrote:
On Tue, 25 May 2004 13:56:21 +0200, Paul <pv******@xs4all.nl> wrote:
When an inline box contains a block box, the inline box (and its
inline ancestors within the same line box) are broken around the block.
The line boxes before the break and after the break are enclosed in
anonymous boxes, and the block box becomes a sibling of those anonymous
boxes.
Question:
Should "... are enclosed in anonymous boxes ..." actually say "... are
enclosed in anonymous block boxes ..." !?
I am pretty sure this means that
<span>lalala<p>lalala</p>lalala</span>
is really rendered as
<span>lalala</span><p><span>lalala</span></p><span>lalala</span>
No. It is not the place of the CSS spec to say anything about how user
agents should fix broken markup; any such fixing should be done before
CSS is applied.
Further, span is not an anonymous box. Anonymous boxes are those that
are not associated with any HTML (or other markup language) element.
The example given in the spec for the text quoted by the OP is:
body { display: inline }
p { display: block }
<BODY>
This is anonymous text before the P.
<P>This is the content of P.</P>
This is anonymous text after the P.
</BODY>
cheers,
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>