OLD | NEW |
(Empty) | |
| 1 <sky> |
| 2 |
| 3 <import src="../resources/run-after-display.sky" as="runAfterDisplay" /> |
| 4 <style> |
| 5 sky { |
| 6 padding: 10px; |
| 7 } |
| 8 div { |
| 9 width: 50px; |
| 10 height: 50px; |
| 11 white-space: nowrap; |
| 12 } |
| 13 </style> |
| 14 Transforms |
| 15 <div style="transform: translate3d(10px, 10px, 0); background-color: pink;"> |
| 16 One |
| 17 <div style="transform: translate3d(10px, 10px, 0); background-color: salmon;"> |
| 18 Two |
| 19 <div style="transform: translate3d(10px, 10px, 0); background-color: papayaw
hip;"> |
| 20 Three |
| 21 </div> |
| 22 </div> |
| 23 </div> |
| 24 |
| 25 <div style="position: absolute; right: 50px;"> |
| 26 <div style="background-color: red;"> |
| 27 1 |
| 28 </div> |
| 29 <div style="position: absolute; left: 40px; top: 40px; z-index: 2; background-
color: pink;"> |
| 30 4 |
| 31 </div> |
| 32 <div style="position: absolute; left: 20px; top: 20px; z-index: 0; background-
color: salmon;"> |
| 33 2 |
| 34 </div> |
| 35 <div style="position: absolute; left: 35px; top: 20px; z-index: 1; background-
color: papayawhip;"> |
| 36 3 |
| 37 </div> |
| 38 <div style="background-color: green;"> |
| 39 1 |
| 40 </div> |
| 41 z-index |
| 42 </div> |
| 43 |
| 44 <div style="position: absolute; bottom: 50px;"> |
| 45 Clip-path |
| 46 <div style="background-color: pink; -webkit-clip-path: circle(25px at 25px 25p
x);"> |
| 47 <div style="background-color: salmon; -webkit-clip-path: circle(25px at 35px
35px);"> |
| 48 <div style="background-color: papayawhip; -webkit-clip-path: circle(25px a
t 45px 45px);"></div> |
| 49 </div> |
| 50 </div> |
| 51 </div> |
| 52 |
| 53 <script> |
| 54 runAfterDisplay(function() { |
| 55 internals.notifyTestComplete(""); |
| 56 }); |
| 57 </script> |
| 58 |
| 59 </sky> |
OLD | NEW |