[nightly-unstable] 2 problems with font-147

Hello,

http://test.csswg.org/suites/css2.1/nightly-unstable/html4/font-147.htm

1-

.b { font: 10px inherit, Ahem;  }

This should trigger a parsing error since inherit is not quoted.

'font'
    Value:  	[ [ <'font-style'> || <'font-variant'> || <'font-weight'>
]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption
| icon | menu | message-box | small-caption | status-bar | inherit
http://www.w3.org/TR/CSS21/fonts.html#font-shorthand


2-

.d { font: 10px 32px, Ahem;  }

This should trigger a parsing error too since 32px is not quoted and is
not escaped.

"
Font family names must either be given quoted as strings, or unquoted as
a sequence of one or more identifiers. This means most punctuation
characters and digits at the start of each token must be escaped in
unquoted font family names.
"
http://www.w3.org/TR/CSS21/fonts.html#propdef-font-family

"
In CSS, identifiers (including element names, classes, and IDs in
selectors) (...) cannot start with a digit, two hyphens, or a hyphen
followed by a digit. Identifiers can also contain escaped characters and
any ISO 10646 character as a numeric code (see next item). (...)
"
http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier


.d { font: 10px "32px", Ahem;  }

or

.d { font: 10px \33 2px, Ahem;  }

or

.d { font: 10px \0000332px, Ahem;  }

would be valid though


Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 Test suite RC6, March 23rd 2011:
http://test.csswg.org/suites/css2.1/20110323/html4/toc.html

CSS 2.1 test suite harness:
http://test.csswg.org/harness/

Contributing to to CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html

Received on Friday, 10 February 2012 23:44:51 UTC