Closed
Bug 496128
Opened 15 years ago
Closed 15 years ago
Fallback font in font-face causes web font to be ignored
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: robertc, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090602 Shiretoko/3.5pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090602 Shiretoko/3.5pre The font-face example page for the recently released Opera 10 beta includes the following definition: @font-face { src: url(Forgotte.ttf) format("truetype"); font-family: "Forgotten Futurist", serif; font-style: normal; } In Opera 10 beta the example text on the page is displayed in Forgotten Futurist, in Firefox 3.5 beta the same paragraph is displayed in default serif. I downloaded and modified the page, changing the rule to: @font-face { src: url(Forgotte.ttf) format("truetype"); font-family: "Forgotten Futurist"; font-style: normal; } On this modified page, Opera and Firefox render identically (http://www.boogdesign.com/examples/fonts/webfonts1.html). As far as I can tell from the CSS3 spec, Opera is doing the right thing. Reproducible: Always Steps to Reproduce: 1. Visit http://devfiles.myopera.com/articles/695/webfonts.html in Opera 10 beta 2. Visit http://devfiles.myopera.com/articles/695/webfonts.html in Firefox 3.5 beta 3. Compare and contrast Actual Results: Bottom paragraph in Firefox uses default serif font. Expected Results: Bottom paragraph in Firefox uses Forgotten Futurist font.
Updated•15 years ago
|
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → style-system
Version: unspecified → 1.9.1 Branch
Comment 1•15 years ago
|
||
http://dev.w3.org/csswg/css3-fonts/#font-family0 (latest editor draft) specifies font-family in a @font-face block as Value: <family-name> What that Opera page specifies are basically 2 <family-name>(s). The error console flags an error: Warning: Error in parsing value for 'font-family'. Skipped to next declaration. Source File: http://devfiles.myopera.com/articles/695/webfonts.html Line: 17 I think this is invalid.
OS: Windows XP → All
Comment 2•15 years ago
|
||
Yes, this is invalid. Opera should be handling the syntax error (two family names in the font-family descriptor) by rejecting the font-family descriptor definition. Since a font-family descriptor definition is required for @font-face rules, without one the entire rule is omitted as if "Forgotten Futurist" didn't exist.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Comment 3•15 years ago
|
||
For reference: * filed as DSK-254622@bugs.opera.com for Opera * https://bugs.webkit.org/show_bug.cgi?id=26183 for Safari/WebKit.
You need to log in
before you can comment on or make changes to this bug.
Description
•