W3C home > Mailing lists > Public > www-style@w3.org > April 2006

Re: Downloadable fonts and image replacement

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 29 Apr 2006 11:31:07 +1000
Message-ID: <4452C1DB.40302@lachy.id.au>
To: Joshua RANDALL FTRD/DIH/BOS <joshua.randall@francetelecom.com>
CC: www-style@w3.org

Joshua RANDALL FTRD/DIH/BOS wrote:
> A full example (which specifies the ordering SVG font, SVG image, 
> truetype font, PNG image, JPEG image, System font, generic font) for two 
> elements in the class company that get different replacement content:
> 
> .company {
>     font-family: url(fonts/company.svg#companyfont), 
> url(fonts/goodfish.zip), "Impact", serif;
> }
> 
> #companyname:font-family-fail(2) {
>     content: url(img/companyname.png), url(img/companyname.jpeg), contents;
> }

The problem with this is that you can't select an element based on the 
value of another property.  There are many reasons for this, but, for 
example, what happens when one does this:

#companyname:font-family-fail(2) {
     font-family: "Times New Roman", Times, serif;
}

Does the pseuso-class still match when the system has Times New Roman 
available?

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Saturday, 29 April 2006 01:31:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:44 GMT