<?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>12874</bug_id>
          
          <creation_ts>2007-02-23 19:09:05 -0800</creation_ts>
          <short_desc>execCommand FontSize -webkit-xxx-large instead of passed px value</short_desc>
          <delta_ts>2010-10-06 17:46:28 -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>HTML Editing</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Peer Bremer">peer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>emerick</cc>
    
    <cc>kai</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21875</commentid>
    <comment_count>0</comment_count>
    <who name="Peer Bremer">peer</who>
    <bug_when>2007-02-23 19:09:05 -0800</bug_when>
    <thetext>document.execCommand(&quot;FontSize&quot;, false, str);

Before passing &quot;10px&quot; to this function produced:

&lt;SPAN class=&quot;Apple-style-span&quot; style=&quot;font-size: 10px;&quot;&gt;Text&lt;/SPAN&gt;

Now this gives me no matter what I pass:
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: -webkit-xxx-large;&quot;&gt;Text&lt;/span&gt;

compactible format, with much less control unless there is another web kit command to pass a font size with a point or pixel value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20301</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2007-03-06 16:33:33 -0800</bug_when>
    <thetext>We changed this operation to match the spec:
http://msdn.microsoft.com/workshop/author/dhtml/reference/constants/fontsize.asp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66596</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Bansner">kai</who>
    <bug_when>2008-01-08 17:05:19 -0800</bug_when>
    <thetext>I just did a little testing with the lastest nightly. You can set the font-size using .execCommand(&apos;FontSize&apos; and values 1-7, but .queryCommandValue(&apos;FontSize&apos;) returns the font-size in pixels... 

Not consistent units! Is there a way to convert the result of .queryCommandValue(&apos;FontSize&apos;) to the corresponding 1-7 value in order to increment font size?


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>290727</commentid>
    <comment_count>3</comment_count>
    <who name="Emerick Rogul">emerick</who>
    <bug_when>2010-10-06 17:46:28 -0700</bug_when>
    <thetext>I think this bug should be reopened.  Comment #1 indicates that the behavior was changed to match Microsoft&apos;s spec.  The provided link is dead, but I believe the following link replaces it:

http://msdn.microsoft.com/en-us/library/ms530759(VS.85).aspx

Based on the information in that spec, I should be able to specify 14pt or 14px (among a number of other types).  However, WebKit just converts these to -webkit-xxx-large.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>