<?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>84203</bug_id>
          
          <creation_ts>2012-04-17 15:34:49 -0700</creation_ts>
          <short_desc>Layout Test svg/transforms/transform-origin-css-property.xhtml is failing</short_desc>
          <delta_ts>2012-05-22 14:16:23 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vincent Scheib">scheib</reporter>
          <assigned_to name="Stephen Chenney">schenney</assigned_to>
          <cc>fmalita</cc>
    
    <cc>giles_joplin</cc>
    
    <cc>krit</cc>
    
    <cc>schenney</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>604406</commentid>
    <comment_count>0</comment_count>
    <who name="Vincent Scheib">scheib</who>
    <bug_when>2012-04-17 15:34:49 -0700</bug_when>
    <thetext>The following layout ref test is failing on Chromium all platforms.

svg/transforms/transform-origin-css-property.xhtml
See:
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=svg%2Ftransforms%2Ftransform-origin-css-property.xhtml

Looks like an anti-aliasing or a small horizontal offset issue.

Test was introduced in https://bugs.webkit.org/show_bug.cgi?id=79068 and not modified since. 

Note, Chromium has pixel test variations checked in --- not intended for a ref test. 
http://trac.webkit.org/changeset/114416

Should be all ref-test or all pixel baselines, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604728</commentid>
    <comment_count>1</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-18 07:55:56 -0700</bug_when>
    <thetext>Committed r114503: &lt;http://trac.webkit.org/changeset/114503&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604731</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-18 07:57:27 -0700</bug_when>
    <thetext>Indeed, this test has a ref test and there should be no image baselines.

I have removed the image baselines but left the expectation for failure. It may be a problem with the ref test result that requires further investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604888</commentid>
    <comment_count>3</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-18 10:56:33 -0700</bug_when>
    <thetext>Definitely a problem with the ref-test not matching. The test renders multiple svg rectangles rotated by 90 degrees with different transform-origin points, specified using different forms. e.g.

[&quot;50% 50%&quot;, &quot;center 50%&quot;, &quot;50% center&quot;, &quot;center&quot;, &quot;center center&quot;, [15, 15]]

All of the rects in a set should appear right on top of each other.

The ref-test just uses a single div with the % spec. 

My suspicion is that (15,15) is not the same as (50%,50%) when all is said and done.

As this test is testing that SVG supports the property, I propose fixing it by changing the ref to print multiple divs using the same values as the test.

I&apos;ll get a patch up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604906</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2012-04-18 11:11:20 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Definitely a problem with the ref-test not matching. The test renders multiple svg rectangles rotated by 90 degrees with different transform-origin points, specified using different forms. e.g.
&gt; 
&gt; [&quot;50% 50%&quot;, &quot;center 50%&quot;, &quot;50% center&quot;, &quot;center&quot;, &quot;center center&quot;, [15, 15]]
&gt; 
&gt; All of the rects in a set should appear right on top of each other.
&gt; 
&gt; The ref-test just uses a single div with the % spec. 
&gt; 
&gt; My suspicion is that (15,15) is not the same as (50%,50%) when all is said and done.
&gt; 
&gt; As this test is testing that SVG supports the property, I propose fixing it by changing the ref to print multiple divs using the same values as the test.
&gt; 
&gt; I&apos;ll get a patch up.

The idea of ref tests is that they are platform independent. If the test is failing on chromium, it should get onto the skip list and needs investigation. If it turns out that the test is wrong, the test should be changed. Don&apos;t create platform dependent ref files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604935</commentid>
    <comment_count>5</comment_count>
      <attachid>137730</attachid>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-18 11:35:54 -0700</bug_when>
    <thetext>Created attachment 137730
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604942</commentid>
    <comment_count>6</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-18 11:37:39 -0700</bug_when>
    <thetext>I have modified the ref-test to draw more divs, hopefully reproducing the behavior of the SVG rects. Review at will, but let&apos;s wait until the EWS bots get through it before we commit anything. I&apos;m not sure it will behave on the build machines the same way it behaves locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604948</commentid>
    <comment_count>7</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2012-04-18 11:41:28 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; I have modified the ref-test to draw more divs, hopefully reproducing the behavior of the SVG rects. Review at will, but let&apos;s wait until the EWS bots get through it before we commit anything. I&apos;m not sure it will behave on the build machines the same way it behaves locally.

Maybe I misunderstand what th problem is. Why do you draw more rects? It seems like you change the ref file to be a test itself. Which is not preferred either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604957</commentid>
    <comment_count>8</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-18 11:48:50 -0700</bug_when>
    <thetext>The issue is that apparently

[&quot;50% 50%&quot;, &quot;center 50%&quot;, &quot;50% center&quot;, &quot;center&quot;, &quot;center center&quot;, [15, 15]]

are not all pixel equivalent when applied as transform-origin for rotate(90deg). That seems to be an issue in the code for parsing and applying &quot;center&quot; and &quot;50% center&quot;.

My reasoning applied to this patch is that we are testing whether or not SVG respects the transform-origin property. We are not testing that the various origin specifications (e.g. 50% vs. center) produce identical results. So I think it&apos;s OK to modify the test in this way.

If we do care that all these transform-origin specs are identical, I suggest a different ref-test that uses fixed SVG rectangles in exactly the place we expect the transformed rect to be. But my guess is that it would be even harder to get platform agnostic results.

Interestingly, apparently the CSS div does not respect [15,15] as an origin. Is that spec or a bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>606624</commentid>
    <comment_count>9</comment_count>
      <attachid>137730</attachid>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-20 09:16:04 -0700</bug_when>
    <thetext>Comment on attachment 137730
Patch

Clearing flags on attachment: 137730

Committed r114752: &lt;http://trac.webkit.org/changeset/114752&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>606625</commentid>
    <comment_count>10</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-20 09:16:09 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630744</commentid>
    <comment_count>11</comment_count>
    <who name="Florin Malita">fmalita</who>
    <bug_when>2012-05-22 14:16:23 -0700</bug_when>
    <thetext>*** Bug 83059 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>137730</attachid>
            <date>2012-04-18 11:35:54 -0700</date>
            <delta_ts>2012-04-20 09:16:04 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-84203-20120418143553.patch</filename>
            <type>text/plain</type>
            <size>3817</size>
            <attacher name="Stephen Chenney">schenney</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5n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IiwgImNlbnRlciAxMDAlIiwgIjUwJSBib3R0b20iLCAiYm90dG9tIiwgImNlbnRlciBib3R0b20i
LCAiYm90dG9tIGNlbnRlciJdLAorICAgICAgICAgWyIxMDAlIDEwMCUiLCAicmlnaHQgMTAwJSIs
ICIxMDAlIGJvdHRvbSIsICJyaWdodCBib3R0b20iLCAiYm90dG9tIHJpZ2h0Il0KICAgICAgXTsK
IAotICAgICBmb3IgKHZhciBpID0gMDsgaSA8IHRyYW5zZm9ybU9yaWdpbnMubGVuZ3RoOyBpKysp
ICB7CisgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZXF1aXZhbGVudFRyYW5zZm9ybU9yaWdpbnMu
bGVuZ3RoOyBpKyspICB7CiAgICAgICAgICB2YXIgeCA9IDYwICsgKGkgJSAgNCkgKiA2MDsKICAg
ICAgICAgIHZhciB5ID0gNjAgKyBNYXRoLmZsb29yKGkgLyA0KSAqIDYwOwotICAgICAgICAgYWRk
VHJhbnNmb3JtT3JpZ2luRGl2KHgsIHksIHRyYW5zZm9ybU9yaWdpbnNbaV0pOworICAgICAgICAg
ZXF1aXZhbGVudFRyYW5zZm9ybU9yaWdpbnNbaV0ubWFwKCBmdW5jdGlvbihzKSB7IGFkZFRyYW5z
Zm9ybU9yaWdpbkRpdih4LCB5LCBzKTsgfSApOwogICAgICB9CiAKICAgXV0+PC9zY3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>