<?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>15712</bug_id>
          
          <creation_ts>2012-01-25 18:34:07 +0000</creation_ts>
          <short_desc>CSSTransformValue should not use named constants</short_desc>
          <delta_ts>2012-01-31 21:00: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>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>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Simon Fraser">smfr</assigned_to>
          <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>63111</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-25 18:34:07 +0000</bug_when>
    <thetext>CSSTransformValue&apos;s operationType is defined as an unsigned short.  This is a bad pattern that the web platform is trying to move away from, because it requires authors to do things like

  if (list.operationType == CSSTransformValue.CSS_TRANSLATE3D)

Instead, it should be a string, so that you can instead do

  if (list.operationType == &quot;translate3d&quot;)

This has the added benefit that alert(list.operationType) will output something sensible, like &quot;rotateX&quot; instead of &quot;14&quot;.  Likewise, looking at the variable in a debugger will display something sensible.  Numbers are harder to use, and don&apos;t serve any good purpose.

I&apos;m assuming that CSSTransformValue isn&apos;t yet implemented by multiple UAs, only WebKit, so it can still be changed.  Note that AFAICT, even WebKit only allows you to get one with the non-standard .getCSSPropertyValue() method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63448</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser">smfr</who>
    <bug_when>2012-01-31 21:00:24 +0000</bug_when>
    <thetext>We modeled this after CSSRule, which uses enums &lt;http://dev.w3.org/csswg/cssom/#the-cssrule-interface&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>