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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>3303</bug_id>
          
          <creation_ts>2005-06-07 08:44:54 -0700</creation_ts>
          <short_desc>CSS2: System defined fonts not supported by font property</short_desc>
          <delta_ts>2006-08-16 15:00:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>412</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>5567</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicholas Shanks">nickshanks</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          <cc>aha</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10795</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas Shanks">nickshanks</who>
    <bug_when>2005-06-07 08:44:54 -0700</bug_when>
    <thetext>The system-defined fonts caption, icon, menu, message-box, small-caption and status-bar are not 
supported by the shorthand CSS2 &apos;font&apos; property.

Test case at http://web.nickshanks.com/safari/font</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44399</commentid>
    <comment_count>1</comment_count>
    <who name="Nicholas Shanks">nickshanks</who>
    <bug_when>2006-06-02 10:57:52 -0700</bug_when>
    <thetext>Reassigning to webkit-unassigned, to make sure more people see this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52682</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-08-15 15:30:03 -0700</bug_when>
    <thetext>Fixed.  Note that I did not agree with the font sizes mentioned in the test case attached to this bug, so the font sizes chosen are a little different.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52691</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-08-15 16:15:34 -0700</bug_when>
    <thetext>r15888 with layout tests in r15889
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52727</commentid>
    <comment_count>4</comment_count>
    <who name="Nicholas Shanks">nickshanks</who>
    <bug_when>2006-08-16 10:25:39 -0700</bug_when>
    <thetext>Those font sizes quoted were at the system&apos;s 72 dpi setting, so are in px units, not points.
If you set some text to the sizes mentioned using TextEdit, you should get the same (that&apos;s how i discovered the sizes given, trial and error, using whatever version of the OS i had installed on the 15th of April 2005), but I assumed it&apos;s best to use system functions such as +[NSFont systemFontOfSize:NSSmallSystemFontSize] and its ilk to generate a px size, then divide by 0.75 to get a 96dpi point size (or other value for other dpis).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52781</commentid>
    <comment_count>5</comment_count>
    <who name="Nicholas Shanks">nickshanks</who>
    <bug_when>2006-08-16 14:05:39 -0700</bug_when>
    <thetext>One problem I noticed: the specified fonts aren&apos;t affected by zooming the text size. Is this really a good idea? I think they ought to be the same as the system at 100%, but grow and shrink along with the rest of the text. I am going to re-open this, but if you think that&apos;s correct behaviour, just close it again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52788</commentid>
    <comment_count>6</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-08-16 14:39:17 -0700</bug_when>
    <thetext>Ah yes, that was not intentional (and is in fact a regression, since form controls aren&apos;t going to swap out to larger sizes as you zoom).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52791</commentid>
    <comment_count>7</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-08-16 15:00:46 -0700</bug_when>
    <thetext>Ok, fixed in r15922.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>