W3C home > Mailing lists > Public > www-style@w3.org > August 2005

[css21] anonymous block boxes versus block boxes

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Fri, 12 Aug 2005 14:19:20 +0200
Message-ID: <20050812141920.ch55fgffwlgk84kk@webmail.annevankesteren.nl>
To: www-style@w3.org

I have created two testcases. None of them has pass criterea as I'm not sure
what the expected behavior should be:

In the first testcase I have used this markup wherein the SPAN element is
floated to the right:

# <div>Test<span>Test</span></div>

Per rule 3 of section 9.7 in CSS 2.1 the computed value of the SPAN element its
float property is 'block'. Per section I would then assume that the the
first four characters inside the DIV element, all before the start tag of the
SPAN element, are inside an anonymous block box.

Opera shows both words on the same line. Mozilla and Internet Explorer differ in
this behavior and show the floated box on a second line. (I believe Safari and
Internet Explorer 5 for the Mac do the same thing as Opera.)

The second testcase has the followng markup wherein both SPAN elements have
'display:block' and the second SPAN element is float to the right:

# <div><span>Test</span><span class="float">Test</span></div>

Here Opera, Mozilla and Internet Explorer agree and show the float box on a
second line.

To me it seems both cases are equivalent due to the anonymous block box. Am I
missing something?

Kind regards,


Anne van Kesteren
Received on Friday, 12 August 2005 12:19:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:20 UTC