W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2011

Re: block-formatting-contexts-010

From: Alan Gresley <alan@css-class.com>
Date: Tue, 18 Oct 2011 10:56:56 +1100
Message-ID: <4E9CC0C8.9070805@css-class.com>
To: Alan Stearns <stearns@adobe.com>
CC: Public CSS test suite mailing list <public-css-testsuite@w3.org>
On 18/10/2011 10:04 AM, Alan Stearns wrote:
> I'm writing a css3-regions test to validate that a region creates a new
> block formatting context. So I've looked at existing tests in the css2.1
> testsuite. But I'm confused about block-formatting-contexts-010.xht and some
> of its siblings.
>
> The test asserts that "Elements defined as inline-blocks establish a new
> block formatting context." But the test renders the same if I remove the
> display:inline-block line. Does this test actually check its assertion?
>
> Thanks,
>
> Alan

If your referring to this test,

http://test.csswg.org/suites/css2.1/20110323/xhtml1/block-formatting-contexts-010.xht

then no, it does not test what the asserts states. For the test to get 
anywhere close, the CSS would have to changed to something like this.

#div1
             {
                 border: solid;
                 height: 200px;
                 width: 200px;
                 display: inline-block;
             }
             div div
             {
                 background: blue;
                 height: 50%;
                 width: auto;
             }





-- 
Alan Gresley
http://css-3d.org/
http://css-class.com/
Received on Monday, 17 October 2011 23:57:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 17 October 2011 23:57:42 GMT