<?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>15710</bug_id>
          
          <creation_ts>2012-01-25 18:12:15 +0000</creation_ts>
          <short_desc>Serialization of inline style should be specified for function lists (e.g., transform)</short_desc>
          <delta_ts>2013-08-23 19:05:14 +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>CSSOM</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>ayg</cc>
    
    <cc>cmarrin</cc>
    
    <cc>dino</cc>
    
    <cc>eoconnor</cc>
    
    <cc>glenn</cc>
    
    <cc>smfr</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63107</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-25 18:12:15 +0000</bug_when>
    <thetext>data:text/html,&lt;!DOCTYPE html&gt;
&lt;script&gt;
document.head.style.transform = &apos;RotatE( 45dEg )scalex(2)&apos;;
document.documentElement.textContent = 
document.head.style.transform
&lt;/script&gt;

This outputs &quot;rotate(45deg) scaleX(2)&quot; in IE9, Chrome 17 dev, and Opera Next 12.00 alpha.  In Firefox 12.0a1, it outputs &quot;Rotate(45deg) scalex(2)&quot;, not normalizing the capitalization of the transform functions.  It should be specified that Firefox&apos;s behavior is incorrect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63114</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-01-25 19:23:57 +0000</bug_when>
    <thetext>More thorough test-case:

data:text/html,&lt;!DOCTYPE html&gt;
&lt;script&gt;
document.head.style.transform = &apos;RotatE( 3rAd )scalex(2) translateX(10%)&apos;;
document.documentElement.textContent = 
document.head.style.transform
&lt;/script&gt;

IE9, Chrome 17 dev: rotate(3rad) scaleX(2) translateX(10%)
Firefox 12.0a1: RotatE(3rad) scalex(2) translateX(10%)
Opera Next 12.00 alpha: rotate(171.89deg) scaleX(2) translateX(10%)

I suggest the IE/Chrome behavior as standard.  Units should be preserved, unlike Opera; and case should be normalized, unlike Gecko.

Gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=721136</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64040</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-02-13 17:31:29 +0000</bug_when>
    <thetext>This should probably be in CSSOM, actually, not the transforms spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64612</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Schulze">dschulze</who>
    <bug_when>2012-02-26 15:31:05 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; This should probably be in CSSOM, actually, not the transforms spec.

Can we move it to product CSSOM?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64830</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2012-03-01 17:06:52 +0000</bug_when>
    <thetext>Now that CSSOM is being actively edited, I&apos;m happy to move it there:

http://dvcs.w3.org/hg/cssom/raw-file/tip/Overview.html/#serializing-css-values

That should say how to serialize a function.  The serialization should be something like: first the function&apos;s name, in whatever case is used in the specification (usually but not always lowercase); then &quot;(&quot;; then the arguments, serialized according to their type, separated by &quot;, &quot;; then &quot;)&quot;.

Glenn, does that sound good to you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64836</commentid>
    <comment_count>5</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-03-01 17:30:37 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Now that CSSOM is being actively edited, I&apos;m happy to move it there:
&gt; 
&gt; http://dvcs.w3.org/hg/cssom/raw-file/tip/Overview.html/#serializing-css-values
&gt; 
&gt; That should say how to serialize a function.  The serialization should be
&gt; something like: first the function&apos;s name, in whatever case is used in the
&gt; specification (usually but not always lowercase); then &quot;(&quot;; then the arguments,
&gt; serialized according to their type, separated by &quot;, &quot;; then &quot;)&quot;.
&gt; 
&gt; Glenn, does that sound good to you?

sounds good; have this on my edit list already!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92520</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-08-23 19:05:14 +0000</bug_when>
    <thetext>Currently CSSOM switches based on component value type, so the following (at least) are missing

&lt;transform-list&gt;
&lt;transform-function&gt;
&lt;translation-value&gt;

(I&apos;m not sure we can use more abstract types like css-syntax&apos;s component value, since we need special rules for e.g. &lt;color&gt;.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>