W3C home > Mailing lists > Public > www-validator-cvs@w3.org > December 2009

[Bug 8529] New: A system font value cannot mix with another subproperty value when declaring a font shorthand

From: <bugzilla@wiggum.w3.org>
Date: Mon, 21 Dec 2009 03:27:05 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-8529-169@http.www.w3.org/Bugs/Public/>

           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-
        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


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 states:
A bar (|) separates two or more alternatives: exactly one of them must occur. 

Section 15.8 states:
    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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:41 UTC