Microsoft's display-005.htm testcase: display: inline-block test

Hello,

http://www.w3.org/Style/CSS/Test/CSS2.1/20100127/html4/display-005.htm

http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_9/display-005.xht


1- The testcase assumes, presumes that the string "Filler Text Filler
Text" with a font-size of 16px with default font will all fit inside a
150px content box and on the same line. This is not true. Opera 10.10
requires 171px; Firefox 3.5.8 requires 177px, Konqueror 4.4 requires
151px (sans-serif) or 177px (serif) etc. So, the last "Text" word will
line-wrap on another line, creating a test failure.

Content width applies to inline-block (see section 10.2)
http://www.w3.org/TR/CSS21/visudet.html#the-width-property

2- There is no need to restrain, to constrain the tested box to a width
of 150px to begin with. The testcase should only test the layout
behavior of an inline-block. It should not start on another line. And I
don't understand the need to declare a box height of 50px either.

3- The testcase assertion is definitely wrong because self-referring,
circularly-defining itself:

<meta name="assert" content="The property 'display' set to
'inline-block' behaves in layout as an inline block." />

May I suggest/propose this as a replacement:

<link rel="help"
href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" />
<link rel="help"
href="http://www.w3.org/TR/html4/struct/global.html#h-7.5.3" />
<meta name="flags" content="" />
<meta name="assert" content="The property 'display' set to
'inline-block' is formatted in layout as an inline-level element: it
creates a new block formatting context for its descendants but it is
laid out, flowed as an inline-level element. An inline-block does not
begin on a new line and does not require to begin on a new line." />

and to remove the width and height CSS declarations.

regards, Gérard Talbot
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (alpha 1; January 27th 2010):
http://www.w3.org/Style/CSS/Test/CSS2.1/20100127/html4/toc.htm

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/

Received on Sunday, 28 February 2010 19:02:38 UTC