<?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>15443</bug_id>
          
          <creation_ts>2012-01-06 18:39:41 +0000</creation_ts>
          <short_desc>CSSMatrix is defined, but there&apos;s no way to get one</short_desc>
          <delta_ts>2012-02-23 05:20:24 +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>LATER</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>62342</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-06 18:39:41 +0000</bug_when>
    <thetext>http://dev.w3.org/csswg/css3-transforms/ defines a CSSMatrix interface with a bunch of methods.  However, nothing in the spec provides any way to obtain a CSSMatrix, except by calling methods on an existing CSSMatrix.  Either there should be some way to create a CSSMatrix -- maybe define a constructor? -- or the definition should be removed.

(FWIW, window.CSSMatrix is undefined in all browsers I tested in.  Either browsers don&apos;t actually implement the interface, or they implement it with [NoInterfaceObject].  grep -IR CSSMatrix . in mozilla-central returns no results.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62345</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2012-01-06 19:02:52 +0000</bug_when>
    <thetext>foo = new CSSMatrix(&apos;rotate(10deg)&apos;) works in webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62346</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-06 19:46:33 +0000</bug_when>
    <thetext>Is this only the Safari port?  In Chrome 17 dev, I get &quot;Uncaught ReferenceError: CSSMatrix is not defined&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62616</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Marrin">cmarrin</who>
    <bug_when>2012-01-12 21:35:04 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Is this only the Safari port?  In Chrome 17 dev, I get &quot;Uncaught
&gt; ReferenceError: CSSMatrix is not defined&quot;.

In WebKit you have to say WebKitCSSMatrix, for instance:

    javascript:alert(new WebKitCSSMatrix(&apos;rotate(10deg)&apos;))

in the address bar works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62668</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-13 17:03:47 +0000</bug_when>
    <thetext>Aha, okay.  Then I think the IDL should have this line added before it:

  [Constructor(optional DOMString transform)]

and some prose like

&quot;&quot;&quot;
When the constructor for CSSMatrix is invoked, the parameter &lt;var&gt;transform&lt;/var&gt; must be parsed according to the rules for parsing the &lt;a href=#transform-property&gt;transform property&lt;/a&gt;.  If parsing succeeds, return a CSSMatrix representing the matrix corresponding to &lt;var&gt;transform&lt;/var&gt;.  Otherwise, if &lt;var&gt;transform&lt;/var&gt; is the empty string or is omitted, return a CSSMatrix representing the identity matrix.  Otherwise, &lt;a href=http://dvcs.w3.org/hg/domcore/raw-file/tip/dom-core.html#concept-throw&gt;throw&lt;/a&gt; a SyntaxError exception.
&quot;&quot;&quot;

(This doesn&apos;t define how whitespace stripping works, but that&apos;s not a big deal for now.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64472</commentid>
    <comment_count>5</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2012-02-23 05:20:24 +0000</bug_when>
    <thetext>This gets delayed to CSS4 Transforms.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>