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

[RC6] inline-formatting-context-008 title and text assert has issues

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 30 Nov 2011 13:48:58 -0800
Message-ID: <57f2e57d58746813fb7d04531cfd23ea.squirrel@gtalbot.org>
To: "Arron Eicholz" <arron.eicholz@microsoft.com>
Cc: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
Arron,

[RC6]
http://test.csswg.org/suites/css2.1/20110323/html4/inline-formatting-context-008.htm

[nightly-unstable]
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/inline-formatting-context-008.htm

 <title>CSS Test: Inline element widths are determined by the containing
block</title>

 <meta name="assert" content="Inline element width is determined by the
containing block.">

The width of non-replaced inline elements (basically text nodes) are not
determined by the width of their containing blocks but by the font-size
of characters involved. And then maybe padding, border and margins if
we're talking about inline box and not just content width.

The title and text assert, as worded, is not to be found anywhere in
section 9.4.2 Inline formatting contexts
http://www.w3.org/TR/CSS21/visuren.html#inline-formatting

What should most likely be written instead for that testcase is that the
line box's width is (or is given by) the width of the containing block
(minus width of floats, if any/present) where are those inline boxes. Or
something similar.


"
When several inline-level boxes cannot fit horizontally within a single
line box, they are distributed among two or more vertically-stacked line
boxes.
(...)
When the total width of the inline-level boxes on a line is less than
the width of the line box containing them, their horizontal distribution
within the line box is determined by the 'text-align' property.
"

Inline element width are entirely and totally independent of width of
containing block.

The testcase as coded has issues too.

What I would propose is to reuse the example
"Several emphasized words appear in this sentence, dear."
from section 9.4.2 and to set a width to the <p> as the containing block.

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

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Wednesday, 30 November 2011 21:49:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 November 2011 21:49:45 GMT