Re: Default role of <IMG> should be "img"

On 12 Sep 2010, at 10:47, Benjamin Hawkes-Lewis wrote:
> Or would you argue that mappings to image roles should be based on CSS as well as markup?

Looks like ARIA already uses the CSSOM when calculating text alternatives:

"Text nodes are often visited because they are children of an element that uses rule 2C to collect text from its children. However, because it is possible to specify textual content using the CSS :before and :after pseudo-elements, it is necessary for user agents to combine such content with the text referenced by the text nodes to produce a complete text alternative."

http://www.w3.org/WAI.new/PF/aria-implementation/#mapping_additional

Separation of concerns fail. :(

--
Benjamin Hawkes-Lewis

Received on Sunday, 12 September 2010 14:11:17 UTC