<?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>12428</bug_id>
          
          <creation_ts>2011-04-05 23:57:30 +0000</creation_ts>
          <short_desc>Unquoted font-family name Hawaii 5-0 is reported valid by validator and not parsed+reported as invalid</short_desc>
          <delta_ts>2012-09-21 14:37:04 +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>FIXED</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?uri=http://www.gtalbot.org/BrowserBugsSection/css21testsuite/Hawaii5-0-example.html&amp;warning=2&amp;profile=css21&amp;usermedium=all</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>caribou</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>47173</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2011-04-05 23:57:30 +0000</bug_when>
    <thetext>Testcase
--------

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/Hawaii5-0-example.html



Relevant chunk of code
----------------------
h1 {font-family: Hawaii 5-0, sans-serif;}



Relevant chunk of spec
----------------------

&quot;
    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.

    (...)

    For example, the following declarations are invalid:

    (...)

    font-family: Hawaii 5-0, sans-serif;

&quot;
CSS 2.1, section 15.3 Font-family
http://www.w3.org/TR/CSS21/fonts.html#font-family-prop

&quot;
In CSS, identifiers (...) cannot start with a digit
&quot;
CSS 2.1, section 4.1.3 Characters and case
http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier



Url of validation (step to reproduce)
-------------------------------------

http://jigsaw.w3.org/css-validator/validator?uri=http://www.gtalbot.org/BrowserBugsSection/css21testsuite/Hawaii5-0-example.html&amp;warning=2&amp;profile=css21&amp;usermedium=all


Actual results
--------------
- The CSS validator does not report such font-family declaration as invalid
- The CSS validator **removes** the hyphen (between 5 and 0) in its Valid CSS report.



Expected results
----------------

The CSS validator reports that the unquoted Hawaii 5-0 is invalid and explains appropriately that it is because each identifiers must not start with a digit. Or something like that.

regards, Gérard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65701</commentid>
    <comment_count>1</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2012-03-17 23:47:09 +0000</bug_when>
    <thetext>Another example for this bug report:

div {font-family: Courier 10 Pitch;}

is not valid and not correct as one of the identifiers starts with a
digit. The CSS validator does not report a validation error with such declaration when it should.

Gérard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73155</commentid>
    <comment_count>2</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2012-09-02 17:03:45 +0000</bug_when>
    <thetext>This appears to have been fixed.
The CSS validator now reports:

27 h1 Value Error : font-family 5 is not a font-family value : Hawaii 5 0,sans-serif 

Gérard</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>