W3C home > Mailing lists > Public > public-css-testsuite@w3.org > February 2010

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

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Sun, 28 Feb 2010 11:02:00 -0800
Message-ID: <f3ea03d6cef3a19d23d99162b42582e3.squirrel@cp3.shieldhost.com>
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Cc: "Arron Eicholz" <Arron.Eicholz@microsoft.com>



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)

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:

CSS 2.1 test suite (alpha 1; January 27th 2010):

CSS 2.1 test suite contributors:
Received on Sunday, 28 February 2010 19:02:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:19 UTC