OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 div { | 3 div { |
4 width: 100px; | 4 width: 100px; |
5 height: 100px; | 5 height: 100px; |
6 position: absolute; | 6 position: absolute; |
7 transform-origin: 50% 50%; | 7 transform-origin: 50% 50%; |
8 } | 8 } |
9 | 9 |
10 /* Note the order of the scaling operation affects the path coordinates */ | 10 /* Note the order of the scaling operation affects the path coordinates */ |
11 #target { | 11 #target { |
12 background-color: red; | 12 background-color: red; |
13 translate: 200px 10px; | 13 translate: 200px 10px; |
14 rotate: 90deg; | 14 rotate: 90deg; |
15 scale: 1 2; | 15 scale: 1 2; |
16 motion: path("m 0 0 v -20 h 20") 0rad 100%; | 16 motion: path("m 0 0 v -30 h 40") 0rad 100%; |
| 17 transform: scale(3, 4); |
17 } | 18 } |
18 #expected { | 19 #expected { |
19 background-color: green; | 20 background-color: green; |
20 transform: translate(240px, 30px) rotate(90deg) scale(1, 2); | 21 transform: translate(200px, 10px) rotate(90deg) scale(1, 2) translate(-10px,
-80px) scale(3, 4); |
21 } | 22 } |
22 </style> | 23 </style> |
23 | 24 |
24 <p>There should be no red color boxes</p> | 25 <p>There should be no red color boxes</p> |
25 <div id="target"></div> | 26 <div id="target"></div> |
26 <div id="expected"></div> | 27 <div id="expected"></div> |
OLD | NEW |