W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Re: [css3-content] [css21-content] Syntax for adding alternative text for inserted image

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Thu, 25 Nov 2010 19:31:03 +0100
To: charles.belov@sfmta.com, "CSS 3 W3C Group" <www-style@w3.org>, François REMY <fremycompany_msn@yahoo.fr>
Message-ID: <op.vmqod1dfbunlto@oyvinds-desktop>
On Fri, 19 Nov 2010 16:05:17 +0100, François REMY  
<fremycompany_msn@yahoo.fr> wrote:

> Suppose you have something like that
> <books>
> <book new="true">My new book</book>
> <book new="false">My second book</book>
> <book new="false">My first book</book>
> </books>
> You would like to write something like
> book[new="true"]::before {
>      content: image(url('new.gif),'New: ');
> }

As far as I can see the css3-content draft[1] already allows for this to  
be accomplished, without the image() part.

book[new="true"]::before {
     content: url(new.gif), 'New: ';
}

(At least on the Web, I go by the rule that a document should be usable  
with (author) styling disabled. But it also seems clear that the specs  
acknowledge the possibility of decorative text strings.)

[1] http://www.w3.org/TR/css3-content/#inserting3
-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Thursday, 25 November 2010 18:29:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:34 GMT