<?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>942</bug_id>
          
          <creation_ts>2004-11-15 22:58:40 +0000</creation_ts>
          <short_desc>Incorrect / inconsistent parsing of &apos;font&apos; property</short_desc>
          <delta_ts>2005-08-26 14:29:39 +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.0</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.employees.org/~lanzo/css/validator-test1.html</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="Mark Lanzo">lanzo</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          
          
          <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>2622</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Lanzo">lanzo</who>
    <bug_when>2004-11-15 22:58:40 +0000</bug_when>
    <thetext>The validator reports a warning &quot;font-family: You are encouraged to offer a
generic family as a last alternative&quot; despite the fact that you have used a
generic family in every font specification.

As a test, I ran the validator across a document whose *entire* CSS content
consisted solely of:

&lt;style type=&quot;text/css&quot;&gt;
  body          { font: 10pt Helvetica, sans-serif normal; }
&lt;/style&gt;

Even this produces the warning.

Note:  this matches bug 818, which for some reason was closed as &quot;invalid&quot; even
though it is apparently quite valid and easy to reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2623</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2004-11-15 23:25:35 +0000</bug_when>
    <thetext>As far as I can tell from http://www.w3.org/TR/CSS21/fonts.html#font-shorthand the &quot;font&quot; shorthand 
does not allow to use the variant after the font-family. 

Hence 
font: 10pt Helvetica, sans-serif normal;
is being parsed as if &quot;sans-serif normal&quot; were a font-family, which is *not* a generic family. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2632</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lanzo">lanzo</who>
    <bug_when>2004-11-16 15:38:22 +0000</bug_when>
    <thetext>Reason for closing bug are invalid.

Tried to send details, but the email reply address is not working.  Please
supply valid email address so I can pass that info along.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2633</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2004-11-16 18:17:35 +0000</bug_when>
    <thetext>Re: Comment #2: if it&apos;s not possible to follow-up on this bug directly on the bug tracking system (which 
would be preferred, for consistency), an alternative is the (public) mailinglist for the CSS validator - 
www-validator-css@w3.org

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2634</commentid>
    <comment_count>4</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2004-11-17 12:12:47 +0000</bug_when>
    <thetext>FWIW, I agree with Olivier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2635</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2004-11-17 12:21:17 +0000</bug_when>
    <thetext>Initial reporter Mark sent me other examples... While the generic font-family parsing issue is not 
altogether clear, it appears that the parsing of the font shorthand property is sometimes wrong, and 
often inconsistent. 

I am changing the title of this bug from:
Warns to use generic font-family despite having done so
to 
incorrect / inconsistent parsing of &apos;font&apos; property
and raising priority/severity accordingly.

For reports specifically related to the font-family property, its parsing and the warning about generic 
font-family, we still have bug #818.

Mark, could you send your examples here, or is it OK if I do it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2636</commentid>
    <comment_count>6</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2004-11-17 12:40:25 +0000</bug_when>
    <thetext>FWIW, I think &apos;font&apos; parsing is known to be broken...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5511</commentid>
    <comment_count>7</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2005-08-26 14:29:39 +0000</bug_when>
    <thetext>Fixed, see http://qa-dev.w3.org:8001/css-validator/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>