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

Re: [RC4] bidi-alt-001 Re: RC4 Invalid tests

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Tue, 21 Dec 2010 12:45:51 -0800
Message-ID: <3e1fdd3535b7ffc17d56c72569880dc1.squirrel@cp3.shieldhost.com>
To: "Øyvind Stenhaug" <oyvinds@opera.com>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>

Le Mar 21 décembre 2010 9:08, Øyvind Stenhaug a écrit :
> On Sat, 18 Dec 2010 18:52:44 +0100, Gérard Talbot
> <css21testsuite@gtalbot.org> wrote:
>
>>> (It was
>>> fixed by fantasai by setting width:0 for img so that the alt text
>>> won't
>>> be
>>> visible if the img is still considered to be a replaced element.)
>>
>> There are browsers which will ignore, will override by default the
>> author specified image placeholder dimensions (width="0", 'width: 0')
>> when rendering the alt text for accessibility purposes. This is what
>> happens in this testcase with Firefox 3.6.13.
>
> The idea is that there are two possibilities:
> A) An image that represents its alt text is still treated as a replaced
> element
> This means
> - A single box is rendered ("atomic inline-level box")
> - The 'width' property applies
> - The contents of the IMG (i.e. the alt text) are outside the scope of
> CSS
> B) An image that represents its alt text is treated as a non-replaced
> element
> This means
> - Multiple boxes might be rendered
> - The 'width' property does not apply
> - The contents are within the scope of CSS
>
> Looks like Firefox is trying to do B (long alt texts are broken into
> multiple boxes, line-height has an effect etc). Kind of like
> img{content:attr[alt];}. So there seems to be no reason
> direction/unicode-bidi shouldn't apply.

Where exactly does the spec draw the line on what should apply to alt
text and what should NOT apply to alt text? If it does not draw the line
and if it refuses deliberately to do so, then I think we should not test
stylability of alt text. 'color', 'font-size' may apply (in one or a few
browsers) but other text-related properties (text-transform,
text-indent, letter-spacing, word-spacing) may not (in the same given
list of browsers). There is no given rules, no specified list of
properties.

Is the spec currently NOT specifying how to style alt text? Yes. So why
should we test-target this?

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

CSS 2.1 test suite (RC4; December 10th 2010):
http://test.csswg.org/suites/css2.1/20101210/html4/toc.html

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Tuesday, 21 December 2010 20:46:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 21 December 2010 20:46:39 GMT