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

Re: inlines-009, inlines-010 probably invalid

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 18 Nov 2010 23:44:37 -0800
Message-ID: <4CE62AE5.8040206@inkedblade.net>
To: css21testsuite@gtalbot.org
CC: "L. David Baron" <dbaron@dbaron.org>, public-css-testsuite@w3.org
On 10/05/2010 05:59 PM, "Gérard Talbot" wrote:
>
> When I reviewed inlines-009.htm and inlines-010.htm, I said
> [
> there is no normative rule on how replaced element should
> be displayed.
>
> {
> How a replaced element's content is rendered is not defined by this
> specification. Rendered content may also be alternate text for an
> element (e.g., the value of the XHTML "alt" attribute)
> }
> http://www.w3.org/TR/CSS21/conform.html#defs
> (...)
> ]
>
> Now in RC2, those inlines-009.htm and inlines-010.htm have been updated
> (to use the Ahem font) but the same issue is there (for the - rightmost
> - 4th box using<img src="404" alt="ÉÉÉ">).
>
> http://test.csswg.org/suites/css2.1/20101001/html4/inlines-009.htm
>
> http://test.csswg.org/suites/css2.1/20101001/html4/inlines-010.htm

It's a little subtle, but those tests are actually valid, as follows:

If the image in the fourth box is considered a replaced element,
then the element's box sizing must behave as a replaced element:
in other words, it would be identical to the third box.

If the image in the fourth box is not considered a replaced
element (such as in Firefox, where the text is inserted
directly into the CSS model), then it would be identical
to the first two boxes.

There are afaict no other options for displaying alternate text:
either it's considered replaced content, and the box sizes
accordingly; or it isn't, and it's sized as a regular inline.

~fantasai
Received on Friday, 19 November 2010 07:46:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 19 November 2010 07:46:08 GMT