Bug 12435 - CSS1: Quoted generic family names (e.g. font-family: 'sans-serif';) not respected
Summary: CSS1: Quoted generic family names (e.g. font-family: 'sans-serif';) not respe...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.carto.net/papers/svg/sampl...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-27 03:44 PST by Andreas Neumann
Modified: 2007-02-06 11:57 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Neumann 2007-01-27 03:44:45 PST
At the given example all text elements should be rendered with a sans-serif font, based on the classes "cptnrm" and "nrm" defined in http://www.carto.net/papers/svg/samples/styles_austria_2.css

For correct rendering see f.e. Opera 9.1 or Batik.

Thank you for having a look at it!
Comment 1 Eric Seidel (no email) 2007-01-30 22:53:37 PST
This isn't limited to SVG.  This is a CSS parser "issue"

http://paste.lisp.org/display/36137
Comment 2 Eric Seidel (no email) 2007-01-31 05:17:21 PST
moving to CSS, this is not an SVG bug.
Comment 3 Nicholas Shanks 2007-02-05 13:37:14 PST
http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-family
"Generic font family names are keywords, and therefore must not be quoted."
Firefox follows the W3C, Opera apparently accepts them.
We could support quoted generic families in quirks mode, but that wouldn't affect the SVG example case anyway.

Recommend closing as INVALID.
Comment 4 Andreas Neumann 2007-02-06 11:25:47 PST
ok, I agree that we shouldn't introduce quirks mode in SVG. I changed my example and removed the quotation marks in the CSS definitions. Thanks for pointing out the invalid use of the quotation marks. We can close this bug.

Andreas