Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/transforms/change-transform-origin-css.xhtml

Issue 2786643003: Implement support for the 'transform-box' property (Closed)
Patch Set: Rebase; fix property spec; update histogram.xml Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 2
3 <!-- 3 <!--
4 Verify that changing the SVG transform-origin CSS property attribute works corre ctly. Note that 4 Verify that changing the SVG transform-origin CSS property attribute works corre ctly. Note that
5 the default transform-origin for an SVG element is 0 0. 5 the default transform-origin for an SVG element is 0 0.
6 6
7 The green 100x100 rectangle should appear at 25,25. 7 The green 100x100 rectangle should appear at 25,25.
8 --> 8 -->
9 9
10 <body> 10 <body>
11 <svg xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: 0px; l eft: 0px;"> 11 <svg xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: 0px; l eft: 0px;">
12 <rect id="rect" width="50px" height="50px" x="50" y="50" fill="green" styl e="transform: scale(2, 2);"/> 12 <rect id="rect" width="50px" height="50px" x="50" y="50" fill="green"
13 style="transform: scale(2, 2); transform-box: fill-box"/>
13 </svg> 14 </svg>
14 15
15 <script><![CDATA[ 16 <script><![CDATA[
16 document.getElementById('rect').style.webkitTransformOrigin = "50% 50%"; 17 document.getElementById('rect').style.webkitTransformOrigin = "50% 50%";
17 ]]></script> 18 ]]></script>
18 </body> 19 </body>
19 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698