<?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>15433</bug_id>
          
          <creation_ts>2012-01-05 20:11:38 +0000</creation_ts>
          <short_desc>Resolved value of transform-origin is different from computed value in implementations</short_desc>
          <delta_ts>2012-03-12 19:31:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Transforms</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Simon Fraser">smfr</assigned_to>
          <cc>ayg</cc>
    
    <cc>cmarrin</cc>
    
    <cc>dino</cc>
    
    <cc>dschulze</cc>
    
    <cc>eoconnor</cc>
    
    <cc>smfr</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62308</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-05 20:11:38 +0000</bug_when>
    <thetext>The current specification defines a transform property for getComputedStyle(), but not a transformOrigin property.  The spec should define transformOrigin too.  The format should be &quot;Xpx Ypx&quot;, where X and Y are numbers.  Firefox 12.0a1 will sometimes return percentages instead of lengths for getComputedStyle().MozTransformOrigin, but seemingly only when the transform is &quot;none&quot;.  All other browsers tested (IE9, Chrome 17 dev, Opera Next 12.00 alpha) always return pixel values.

(This ignores the three-value variant of transform-origin: see bug 15432.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62353</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-06 21:08:59 +0000</bug_when>
    <thetext>Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=715946

Boris points out that CSSOM says the resolved value of anything is the computed value unless otherwise noted:

http://dev.w3.org/csswg/cssom/#resolved-value

So the current spec probably does define behavior precisely, although CSSOM doesn&apos;t directly say how the transform-origin property is supposed to translate to a transformOrigin key in getComputedStyle()&apos;s result.  That&apos;s more CSSOM&apos;s problem, though.

The question is now: do we want to stick with the current spec or change to match implementations?  Switching to match implementations would mean one more case where resolved and computed values differ, which is bad.  On the other hand, do implementations want to change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64388</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-02-21 20:19:37 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=715946

This has been fixed, so now all browsers agree (they return pixels, not percentages).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64452</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-02-22 20:05:18 +0000</bug_when>
    <thetext>I&apos;ll update the spec accordingly if no one objects.  It&apos;s annoying when getComputedStyle() doesn&apos;t match the computed style, but . . .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65371</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-03-12 19:31:51 +0000</bug_when>
    <thetext>I updated the spec to match browsers.

http://dvcs.w3.org/hg/csswg/rev/9338e35c5058</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>