W3C home > Mailing lists > Public > public-css-testsuite@w3.org > February 2012

[nightly-unstable] 2 problems with font-147

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Fri, 10 Feb 2012 18:44:20 -0500
Message-ID: <57d3e6161d62f4cc7b37161a5e615482.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 10 February 2012 23:44:59 GMT