<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>8529</bug_id>
          
          <creation_ts>2009-12-21 03:27:04 +0000</creation_ts>
          <short_desc>A system font value cannot mix with another subproperty value when declaring a font shorthand</short_desc>
          <delta_ts>2010-10-15 22:28:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>CSS 2.1</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.gtalbot.org%2FStylesheets%2Ffont-shorthand-system-font-validator-bug.css&amp;profile=css21&amp;usermedium=all&amp;warning=2&amp;lang=en</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gérard Talbot">info</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>dbaron</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30219</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2009-12-21 03:27:04 +0000</bug_when>
    <thetext>URL: 
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.gtalbot.org%2FStylesheets%2Ffont-shorthand-system-font-validator-bug.css&amp;profile=css21&amp;usermedium=all&amp;warning=2&amp;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:
&quot;
A bar (|) separates two or more alternatives: exactly one of them must occur. 
&quot;
http://www.w3.org/TR/CSS21/about.html#value-defs


Section 15.8 states:
&quot;
&apos;font&apos;
    Value:  	[ [ &lt;&apos;font-style&apos;&gt; || &lt;&apos;font-variant&apos;&gt; || &lt;&apos;font-weight&apos;&gt; ]? &lt;&apos;font-size&apos;&gt; [ / &lt;&apos;line-height&apos;&gt; ]? &lt;&apos;font-family&apos;&gt; ] | 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.
&quot;

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41444</commentid>
    <comment_count>1</comment_count>
    <who name="L. David Baron (Mozilla)">dbaron</who>
    <bug_when>2010-10-15 22:28:59 +0000</bug_when>
    <thetext>This bug is invalid; these values are legal.  For an explanation, see http://lists.w3.org/Archives/Public/public-css-testsuite/2010Oct/0179.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>