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>



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

 <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

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
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:

CSS 2.1 Test suite RC6, March 23rd 2011:

CSS 2.1 test suite harness:

Contributing to to CSS 2.1 test suite:
Received on Wednesday, 30 November 2011 21:49:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:26:55 UTC