W3C home > Mailing lists > Public > public-css-testsuite@w3.org > March 2009

'alt' text rendering not clearly defined

From: Arron Eicholz <Arron.Eicholz@microsoft.com>
Date: Mon, 2 Mar 2009 17:58:26 -0800
To: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Message-ID: <66D5CB5D6AB0694592FAF5487C50368B29B56B3C09@NA-EXMSG-C111.redmond.corp.microsoft.com>

This test case is not clearly defined in the specification.

CSS 2.1 Conformance: Requirements and Recommendations, 3.1 [1] states that replaced elements are outside the scope of the CSS formatting model. This means that if 'alt' text is treated as a replaced element then the case is incorrect.

If we look at the HTML 4.01 specification, section 13.8 [2], it states that 'alt' text when rendered should be rendered as content. From this definition it puts the 'alt' text into a different category in section 3.1 [1] of the CSS specification. The "Content" definition states that it "may include text" then continuing on further... The "Rendered content" definition states that "Rendered content may also be alternate text for an element ...". Because of the use of the word "may" it makes this test case optional based on the definition of MAY in the RFC2119 [3].

The test case needs to be removed or updated to allow it to pass if styles do not apply to 'alt' text.

[1] http://www.w3.org/TR/CSS21/conform.html#defs
[2] http://www.w3.org/TR/html401/struct/objects.html#adef-alt
[3] http://www.ietf.org/rfc/rfc2119.txt

Arron Eicholz
Received on Tuesday, 3 March 2009 01:59:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:18 UTC