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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/transforms/transform-box-fill-box.html

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
(Empty)
1 <!DOCTYPE html>
2 <style>
3 svg {
4 background-color: red;
5 }
6 rect {
7 transform-box: fill-box;
8 }
9 #target1 {
10 transform: rotate(90deg);
11 }
12 #target2 {
13 transform: translate(50%, -50%);
14 }
15 #target3 {
16 transform-origin: 25% 25%;
17 transform: rotate(180deg) translate(-25%, -25%);
18 }
19 #target4 {
20 transform-origin: 75px 75px;
21 transform: rotate(-180deg) translate(-25%, -25%);
22 }
23 </style>
24 <svg width="200" height="200">
25 <rect id="target1" x="100" y="100" width="100" height="100" fill="green"/>
26 <rect id="target2" x="50" y="50" width="100" height="100" fill="green"/>
27 <rect id="target3" x="25" y="25" width="100" height="100" fill="green"/>
28 <rect id="target4" x="25" y="25" width="100" height="100" fill="green"/>
29 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698