- From: Anne van Kesteren <fora@annevankesteren.nl>
- Date: Fri, 12 Aug 2005 14:19:20 +0200
- 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: <http://annevankesteren.nl/test/css/float/001> <http://annevankesteren.nl/test/css/float/002> 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 9.2.1.1 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 -- Anne van Kesteren <http://annevankesteren.nl/>
Received on Friday, 12 August 2005 12:19:24 UTC