Re: Downloadable fonts and image replacement

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 UTC