<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>64578</bug_id>
          
          <creation_ts>2011-07-14 17:50:49 -0700</creation_ts>
          <short_desc>translate values without units don&apos;t work</short_desc>
          <delta_ts>2011-08-18 12:55:01 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julien Chaffraix">jchaffraix</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>dino</cc>
    
    <cc>kulanthaivel</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>437434</commentid>
    <comment_count>0</comment_count>
      <attachid>100904</attachid>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-07-14 17:50:49 -0700</bug_when>
    <thetext>Created attachment 100904
Reduction

FF and Opera apply the transformation where WebKit uses the top / left information and ignores the transformation.

Attached is a reduction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>452401</commentid>
    <comment_count>1</comment_count>
    <who name="Kulanthaivel Palanichamy">kulanthaivel</who>
    <bug_when>2011-08-17 11:26:24 -0700</bug_when>
    <thetext>Looks like the reduced test works fine.
Could you please attach the correct test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>452410</commentid>
    <comment_count>2</comment_count>
      <attachid>104201</attachid>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-08-17 11:31:18 -0700</bug_when>
    <thetext>Created attachment 104201
Reduction without deps on repaint.js

&gt; Could you please attach the correct test?

There was a dependency on repaint.js in the previous one. The new one does not have that (it was meant to be a repaint test in the first place). Thanks for noticing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453134</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-08-18 10:45:50 -0700</bug_when>
    <thetext>I think this is correct behavior for HTML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453145</commentid>
    <comment_count>4</comment_count>
    <who name="Kulanthaivel Palanichamy">kulanthaivel</who>
    <bug_when>2011-08-18 11:00:07 -0700</bug_when>
    <thetext>The given test fails because of missing unit identifier (px) in &apos;-webkit-transform: translate(100, 100);&apos; property.

FF and Opera have no problem in assuming &apos;px&apos; in case of missing unit identifier in transform property.

The CSS3 spec http://www.w3.org/TR/css3-2d-transforms/#transform-values says
&lt;translation-value&gt; is defined as a &lt;length&gt; or &lt;percentage&gt; value, and the &lt;angle&gt; type is defined by CSS Values and Units.

and in http://www.w3.org/TR/css3-values/#lengths

The format of a length value (denoted by &lt;length&gt;) is a &lt;number&gt; immediately followed by a unit identifier (e.g., &apos;px&apos;, &apos;gd&apos;). After the &apos;0&apos; length, the unit identifier is optional. 

There is no default assumption specified in case of missing unit identifier in the spec.

I think WebKit follows the spec correctly but FF and Opera are not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453282</commentid>
    <comment_count>5</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2011-08-18 12:55:01 -0700</bug_when>
    <thetext>Yes, this is correct behaviour. Without the unit the transform is invalid.

There is a plan to eventually promote SVG&apos;s transform to a property in which case we&apos;ll have to allow unitless values, but it still might not apply to HTML.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>100904</attachid>
            <date>2011-07-14 17:50:49 -0700</date>
            <delta_ts>2011-07-14 17:50:49 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>fixed-translation.html</filename>
            <type>text/html</type>
            <size>1052</size>
            <attacher name="Julien Chaffraix">jchaffraix</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogICAgPHRpdGxlPjwvdGl0bGU+CiAgICA8c3R5bGU+CiAgICAgICAgLnRy
YW5zbGF0ZWQgewogICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgxMDAsIDEwMCk7CiAg
ICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGUoMTAwLCAxMDApOwogICAgICAg
ICAgICAtbW96LXRyYW5zZm9ybTogdHJhbnNsYXRlKDEwMCwgMTAwKTsKICAgICAgICAgICAgLW8t
dHJhbnNmb3JtOiB0cmFuc2xhdGUoMTAwLCAxMDApOwogICAgICAgIH0KICAgIDwvc3R5bGU+CiAg
ICA8c2NyaXB0IHNyYz0icmVzb3VyY2VzL3JlcGFpbnQuanMiIHR5cGU9InRleHQvamF2YXNjcmlw
dCI+PC9zY3JpcHQ+CiAgICA8c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCI+CiAgICAgICAg
ZnVuY3Rpb24gcmVwYWludFRlc3QoKQogICAgICAgIHsKICAgICAgICAgICAgZG9jdW1lbnQuZ2V0
RWxlbWVudEJ5SWQoJ3QnKS5zZXRBdHRyaWJ1dGUoImNsYXNzIiwgInRyYW5zbGF0ZWQiKTsKICAg
ICAgICB9CiAgICA8L3NjcmlwdD4KPC9oZWFkPgo8Ym9keSBzdHlsZT0iaGVpZ2h0OjIwMDBweDsi
IG9ubG9hZD0icnVuUmVwYWludFRlc3QoKSI+CiAgICA8cCBzdHlsZT0icG9zaXRpb246IHJlbGF0
aXZlOyB0b3A6IDIwMHB4OyI+CiAgICAgICAgUmVwYWludCB0ZXN0IGZvciA8YSBocmVmPSJodHRw
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0uLi4iPi4uLjwvYT46IC4uLgogICAg
PC9wPgogICAgPGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IDMwMHB4OyBsZWZ0
OiAxMDBweDsgd2lkdGg6IDEwMHB4OyBoZWlnaHQ6IDEwMHB4OyBiYWNrZ3JvdW5kOiByZWQiPjwv
ZGl2PgogICAgPGRpdiBpZD0idCIgc3R5bGU9InBvc2l0aW9uOiBmaXhlZDsgdG9wOiAwcHg7IGxl
ZnQ6IDBweDsgd2lkdGg6IDEwMHB4OyBoZWlnaHQ6IDEwMHB4OyBiYWNrZ3JvdW5kOiBncmVlbiI+
PC9kaXY+CiAgICA8c2NyaXB0PgogICAgICAgIHdpbmRvdy5zY3JvbGxUbygwLCAyMDApOwogICAg
PC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>104201</attachid>
            <date>2011-08-17 11:31:18 -0700</date>
            <delta_ts>2011-08-17 11:31:18 -0700</delta_ts>
            <desc>Reduction without deps on repaint.js</desc>
            <filename>bug64578.html</filename>
            <type>text/html</type>
            <size>1473</size>
            <attacher name="Julien Chaffraix">jchaffraix</attacher>
            
              <data encoding="base64">CjwhLS0gc2F2ZWQgZnJvbSB1cmw9KDAwNjUpaHR0cHM6Ly9idWctNjQ1NzgtYXR0YWNobWVudHMu
d2Via2l0Lm9yZy9hdHRhY2htZW50LmNnaT9pZD0xMDA5MDQgLS0+CjxodG1sPjxoZWFkPjxtZXRh
IGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PVVU
Ri04Ij4KICAgIDx0aXRsZT48L3RpdGxlPgogICAgPHN0eWxlPgogICAgICAgIC50cmFuc2xhdGVk
IHsKICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoMTAwLCAxMDApOwogICAgICAgICAg
ICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlKDEwMCwgMTAwKTsKICAgICAgICAgICAgLW1v
ei10cmFuc2Zvcm06IHRyYW5zbGF0ZSgxMDAsIDEwMCk7CiAgICAgICAgICAgIC1vLXRyYW5zZm9y
bTogdHJhbnNsYXRlKDEwMCwgMTAwKTsKICAgICAgICB9CiAgICA8L3N0eWxlPgogICAgPHNjcmlw
dD4KICAgICAgICBmdW5jdGlvbiBydW5SZXBhaW50VGVzdCgpCiAgICAgICAgewogICAgICAgICAg
ICBpZiAod2luZG93LmxheW91dFRlc3RDb250cm9sbGVyKSB7CiAgICAgICAgICAgICAgICBkb2N1
bWVudC5ib2R5Lm9mZnNldFRvcDsKICAgICAgICAgICAgICAgIGxheW91dFRlc3RDb250cm9sbGVy
LmRpc3BsYXkoKTsKICAgICAgICAgICAgICAgIHJlcGFpbnRUZXN0KCk7CiAgICAgICAgICAgIH0g
ZWxzZSB7CiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KHJlcGFpbnRUZXN0LCAxMDApOwogICAg
ICAgICAgICB9CiAgICAgICAgfQogICAgPC9zY3JpcHQ+CiAgICA8c2NyaXB0IHR5cGU9InRleHQv
amF2YXNjcmlwdCI+CiAgICAgICAgZnVuY3Rpb24gcmVwYWludFRlc3QoKQogICAgICAgIHsKICAg
ICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3QnKS5zZXRBdHRyaWJ1dGUoImNsYXNz
IiwgInRyYW5zbGF0ZWQiKTsKICAgICAgICB9CiAgICA8L3NjcmlwdD4KPC9oZWFkPgo8Ym9keSBz
dHlsZT0iaGVpZ2h0OjIwMDBweDsiIG9ubG9hZD0icnVuUmVwYWludFRlc3QoKSI+CiAgIC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