OLD | NEW |
1 <sky> | 1 <sky> |
2 | 2 |
3 <import src="../resources/run-after-display.sky" as="runAfterDisplay" /> | 3 <import src="../resources/run-after-display.sky" as="runAfterDisplay" /> |
4 <style> | 4 <style> |
5 sky { | 5 sky { |
6 padding: 10px; | 6 padding: 10px; |
7 } | 7 } |
8 div { | 8 div { |
9 width: 50px; | 9 width: 50px; |
10 height: 50px; | 10 height: 50px; |
11 white-space: nowrap; | 11 white-space: nowrap; |
12 } | 12 } |
13 </style> | 13 </style> |
14 Transforms | 14 Transforms |
15 <div style="transform: translate3d(10px, 10px, 0); background-color: pink;"> | 15 <div style="transform: translate3d(10px, 10px, 0); background-color: pink;"> |
16 One | 16 One |
17 <div style="transform: translate3d(10px, 10px, 0); background-color: salmon;"> | 17 <div style="transform: translate3d(10px, 10px, 0); background-color: salmon;"> |
18 Two | 18 Two |
19 <div style="transform: translate3d(10px, 10px, 0); background-color: papayaw
hip;"> | 19 <div style="transform: translate3d(10px, 10px, 0); background-color: papayaw
hip;"> |
20 Three | 20 Three |
21 </div> | 21 </div> |
22 </div> | 22 </div> |
23 </div> | 23 </div> |
24 | 24 |
| 25 <div style="position: absolute; top: 250px;"> |
| 26 Opacity |
| 27 <div style="opacity: 0.8; background-color: pink;"> |
| 28 One |
| 29 <div style="opacity: 0.7; position: absolute; left: 10px; background-color:
salmon;"> |
| 30 Two |
| 31 <div style="opacity: 0.6; position: absolute; left: 20px; background-color
: papayawhip;"> |
| 32 Three |
| 33 <div style="opacity: 0; transform: translate3d(0, 10px, 0); background-c
olor: papayawhip;"> |
| 34 Clear |
| 35 </div> |
| 36 </div> |
| 37 </div> |
| 38 </div> |
| 39 </div> |
| 40 |
| 41 |
25 <div style="position: absolute; right: 50px;"> | 42 <div style="position: absolute; right: 50px;"> |
26 <div style="background-color: red;"> | 43 <div style="background-color: red;"> |
27 1 | 44 1 |
28 </div> | 45 </div> |
29 <div style="position: absolute; left: 40px; top: 40px; z-index: 2; background-
color: pink;"> | 46 <div style="position: absolute; left: 40px; top: 40px; z-index: 2; background-
color: pink;"> |
30 4 | 47 4 |
31 </div> | 48 </div> |
32 <div style="position: absolute; left: 20px; top: 20px; z-index: 0; background-
color: salmon;"> | 49 <div style="position: absolute; left: 20px; top: 20px; z-index: 0; background-
color: salmon;"> |
33 2 | 50 2 |
34 </div> | 51 </div> |
(...skipping 15 matching lines...) Expand all Loading... |
50 </div> | 67 </div> |
51 </div> | 68 </div> |
52 | 69 |
53 <script> | 70 <script> |
54 runAfterDisplay(function() { | 71 runAfterDisplay(function() { |
55 internals.notifyTestComplete(""); | 72 internals.notifyTestComplete(""); |
56 }); | 73 }); |
57 </script> | 74 </script> |
58 | 75 |
59 </sky> | 76 </sky> |
OLD | NEW |