<?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>14253</bug_id>
          
          <creation_ts>2011-09-22 21:08:53 +0000</creation_ts>
          <short_desc>Add new fontSize variant that accepts pt/px/etc. instead of legacy values</short_desc>
          <delta_ts>2012-12-04 00:54:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - HTML Editing APIs</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <cc>annevk</cc>
    
    <cc>ehsan</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact name="HTML Editing APIs spec bugbot">sideshowbarker+html-editing-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57186</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-22 21:08:53 +0000</bug_when>
    <thetext>See discussion in bug 14251.  It seems like a straightforward and very useful addition.  Users want to control font size in conventional units like pt, not numbers 1-7.  That&apos;s a constraint that dates back to the fact that when these APIs were first invented, &lt;font size&gt; was the only way to control size . . .

We want it to only accept absolute units: in, cm, mm, pt, pc, px.  I suggest that queryCommandValue() always return pt values, like &quot;12pt&quot; or such, with floating-point allowed.  This way the unit is consistent.

What shall we call it?  fontSizeAbsolute is the first thing that comes to mind, but it&apos;s a terrible name.  Any suggestions?

Also, Ryosuke, do you think this is a good idea too?  Ehsan said he did, in bug 14251.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57254</commentid>
    <comment_count>1</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2011-09-23 19:27:03 +0000</bug_when>
    <thetext>Another name could be fontSizeCss, which is what they are, really.  But I really don&apos;t care about the name too much.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57255</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-23 19:33:36 +0000</bug_when>
    <thetext>It will only support a few types of CSS length, though, not arbitrary values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57328</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-09-26 07:32:37 +0000</bug_when>
    <thetext>Currently CSSOM recommends serializing to px. I&apos;m not sure what implementations will align on though in the end.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57436</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-27 19:27:24 +0000</bug_when>
    <thetext>All implementations use px for getComputedStyle(), but I think the new execCommand should return values in pt, because that&apos;s what users expect for font sizes.  They&apos;re the same anyway except for multiplication by a constant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57452</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-09-27 21:57:59 +0000</bug_when>
    <thetext>Users expect pt? What is that based on?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57485</commentid>
    <comment_count>6</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-28 18:51:05 +0000</bug_when>
    <thetext>For WYSIWYG editors?  Can you find me one that *doesn&apos;t* use pt for font size?  LibreOffice doesn&apos;t even bother specifying a unit, it just has &quot;11&quot; and &quot;12&quot; and so on.  At least for English -- is it different in metric countries?  I just tried changing my UI language for Google Docs to Hebrew, and it&apos;s still pt.

Actually, I think fontSizePt would be a good name for the command.  We can just ignore the unit entirely and make it exclusively pt.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>