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

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 UTC