<?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>16848</bug_id>
          
          <creation_ts>2012-04-25 00:22:52 +0000</creation_ts>
          <short_desc>{font-family: inherit foo;} is parsed and reported as invalid</short_desc>
          <delta_ts>2012-08-29 10:50:14 +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>PC</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/font-family-inherit-foo.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>jackalmage</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>67002</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2012-04-25 00:22:52 +0000</bug_when>
    <thetext>URL for Test
------------

http://jigsaw.w3.org/css-validator/validator?uri=http://www.gtalbot.org/BrowserBugsSection/css21testsuite/font-family-inherit-foo.html&amp;warning=2&amp;profile=css21&amp;usermedium=all


Actual result
-------------
CSS validator reports this validation error message:
&quot;
Value Error : font-family Too many values or values are not recognized : inherit foo 
&quot;


Expected result
---------------
inherit foo should be treated as an unquoted font name with one blank white space which should be parsed as &quot;inherit foo&quot;
&quot;
If a sequence of identifiers is given as a font family name, the computed value is the name converted to a string by joining all the identifiers in the sequence by single spaces.
&quot;
http://www.w3.org/TR/CSS21/fonts.html#font-family-prop



Additional notes
----------------

1-
div {font-family: foo inherit;}
is parsed and reported as valid by the CSS validator.

2- This edge case has been discussed in the thread
[css21] &apos;font-family&apos; should disallow &apos;inherit&apos; in font names more strictly&quot;
http://lists.w3.org/Archives/Public/www-style/2012Apr/0662.html

3- Credits must go to Kang-Hao (Kenny) Lu for discovering this

Gérard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67094</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2012-04-26 01:06:59 +0000</bug_when>
    <thetext>Given that there is active discussion about changing this behavior to clarify that it&apos;s invalid, I think this bug should be WONTFIX for now.  It can be reopened if we agree that this is a valid case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67364</commentid>
    <comment_count>2</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2012-05-07 04:32:17 +0000</bug_when>
    <thetext>Resolving as WONTFIX now that things have been sufficiently clarified

More info:

http://lists.w3.org/Archives/Public/www-style/2012May/0200.html

http://lists.w3.org/Archives/Public/www-style/2012May/0160.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68183</commentid>
    <comment_count>3</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2012-05-27 05:21:08 +0000</bug_when>
    <thetext>&quot;
&apos;foo inherit&apos; and &apos;inherit foo&apos; are valid unquoted font family names.
&quot;

http://lists.w3.org/Archives/Public/www-style/2012May/0878.html

Therefore, REOPENING</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72971</commentid>
    <comment_count>4</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2012-08-29 10:50:14 +0000</bug_when>
    <thetext>Fixed, the test case now reports the following warning:

&quot;Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>