<?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>15471</bug_id>
          
          <creation_ts>2012-01-09 15:27:34 +0000</creation_ts>
          <short_desc>Should resolved value of transform be &quot;none&quot; in some cases?</short_desc>
          <delta_ts>2012-03-12 20:37:32 +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>minor</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>62414</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-09 15:27:34 +0000</bug_when>
    <thetext>&quot;&quot;&quot;
The transform property of the style object returned by getComputedStyle contains a DOMString of the form &quot;matrix(a, b, c, d, e, f)&quot; representing the 3x2 matrix that is the result of applying the individual functions listed in the transform property.
&quot;&quot;&quot;
http://dev.w3.org/csswg/css3-transforms/#dom-interfaces


Test case 1:

data:text/html,&lt;!doctype html&gt;
&lt;script&gt;alert(getComputedStyle(document.head).transform)&lt;/script&gt;

With the property adjusted to msTransform/MozTransform/webkitTransform/OTransform as appropriate, this alerts &quot;none&quot; in all engines (IE9, Firefox 12.0a1, Chrome 17 dev, Opera next 12.00 alpha).

Test case 2:

data:text/html,&lt;!doctype html&gt;
&lt;script&gt;
document.head.style.transform = &quot;none&quot;;
alert(getComputedStyle(document.head).transform);
&lt;/script&gt;

In IE9, this alerts &quot;matrix(1, 0, 0, 1, 0, 0)&quot; per spec.  In Firefox 12.0a1, Chrome 17 dev, and Opera Next 12.00 alpha, it alerts &quot;none&quot;.

Does the spec need to change here, or should browsers change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62840</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2012-01-18 06:08:13 +0000</bug_when>
    <thetext>Looks like IE9 has incorrect behavior on the second test case. getComputedStyle().transform should return &apos;none&apos; unless the element has a transform applied to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62852</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-18 15:19:01 +0000</bug_when>
    <thetext>I&apos;m fine with that, but it&apos;s not what the spec currently says.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63108</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2012-01-25 18:15:41 +0000</bug_when>
    <thetext>I&apos;m adding text like: 

              &lt;p&gt;The computed value of the transform property is a matrix() or matrix3d() value that describes the matrix that results from concatenating the individual transform functions. If the resulting matrix can be represented as a two-dimensional matrix with no loss of information, then a matrix() value is returned, otherwise a matrix3d() value. For elements with no transform applied, the computed value is &apos;none&apos;.&lt;/p&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65383</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-03-12 20:37:32 +0000</bug_when>
    <thetext>It looks like this was fixed: http://dvcs.w3.org/hg/csswg/rev/69a97e82974d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>