W3C home > Mailing lists > Public > www-style@w3.org > September 2008

Suspect CSS2.1 test case

From: Ben Cotterell <ben.cotterell@antplc.com>
Date: Thu, 11 Sep 2008 17:33:38 +0100
To: www-style@w3.org
Message-ID: <551f4e7c9b46d9661b4d1e76a076b2ba950846e4@localhost>

This is the test case:


I think it's wrong.

The first float (which is 1px x 1px) goes in first, in the top left of
the container.

The second float then goes underneath it, because there isn't room for
it to go alongside it.

Then the text "FAIL" goes in, to the right of the first float. Only 1px
of the div's background is visible above the second float, so most of
the text ends up occupying the same position on the page as the second

But the text should be rendered on top of the float because it has a
higher stacking level (see CSS 2.1 9.9.1-- the float is in level 4 and
the inline box containing the word "FAIL" is in level 5).

Recent releases of Konqueror, Firefox and Opera also all "fail" the test
so I'm not the only one.

Am I missing something here?

Ben Cotterell
Senior Software Engineer, ANT Software Limited
Received on Thursday, 11 September 2008 16:37:25 UTC

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