- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 21 Dec 2009 03:27:05 +0000
- To: www-validator-cvs@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=8529
Summary: A system font value cannot mix with another subproperty
value when declaring a font shorthand
Product: CSSValidator
Version: CSS Validator
Platform: All
URL: http://jigsaw.w3.org/css-
validator/validator?uri=http%3A%2F%2Fwww.gtalbot.org%2FS
tylesheets%2Ffont-shorthand-system-font-validator-
bug.css&profile=css21&usermedium=all&warning=2&lang=en
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: CSS 2.1
AssignedTo: dave.null@w3.org
ReportedBy: info@gtalbot.org
QAContact: www-validator-cvs@w3.org
URL:
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.gtalbot.org%2FStylesheets%2Ffont-shorthand-system-font-validator-bug.css&profile=css21&usermedium=all&warning=2&lang=en
The following rules should all be parsed by CSS validator as illegal, as
invalid declarations:
span {font: 32px caption;}
span {font: 32px icon;}
span {font: 32px menu;}
span {font: 32px message-box;}
span {font: 32px small-caption;}
span {font: 32px status-bar;}
References and relevant excerpts
--------------------------------
Section 1.4.2.1 states:
"
A bar (|) separates two or more alternatives: exactly one of them must occur.
"
http://www.w3.org/TR/CSS21/about.html#value-defs
Section 15.8 states:
"
'font'
Value: [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]?
<'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu
| message-box | small-caption | status-bar | inherit
(...)
System fonts may only be set as a whole; that is, the font family, size,
weight, style, etc. are all set at the same time. These values may then be
altered individually if desired.
"
What that means is
span {font: 32px caption;}
is invalid while, on the other hand,
span {font: caption;}
span {font-size: 32px;}
would be valid and would make the font-size of the span element alterable,
modifiable, settable in such code.
System font reserved values (caption, icon, menu, message-box, small-caption,
status-bar) should appear alone without any other font subproperties. Otherwise
the syntax provided for the set of values is wrong.
regards, Gérard
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 21 December 2009 03:27:08 UTC