Re: Use of format() clause in @font-face

On Thu, 30 Apr 2009 04:26:44 +0200, Cameron McCormack <cam@mcc.id.au>  
wrote:

> In the SVG 1.1 test suite, there are two tests (fonts-elem-04-b and
> fonts-elem-07-b) that use an @font-face rule with a ‘src’ descriptor
> that includes a format() clause, like so:
>
>   @font-face {
>     font-family: 'TestComic';
>     font-weight: normal;
>     font-style: normal;
>     src: url("../images/ext-TestComic.svg#Font") format(svg)
>   }
>
> According to CSS 2, inside the format() must be a <string>, which
> therefore needs double or single quotes around it.  css3-fonts follows
> this, and the examples in
> http://dev.w3.org/csswg/css3-fonts/#font-reference use quotes.
>
> Should we correct these?

Yes, that seems appropriate.

> Are there any implementations that do anything
> with format()?

Opera 10 does look at it, if you want something to test with.

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed

Received on Thursday, 30 April 2009 18:37:52 UTC