OLD | NEW |
| (Empty) |
1 <sky> | |
2 | |
3 <import src="../resources/run-after-display.sky" /> | |
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; top: 250px;"> | |
26 Opacity | |
27 <div style="opacity: 0.8; background-color: pink; transform: translate3d(0, 0,
0)"> | |
28 One | |
29 <div style="opacity: 0.7; position: absolute; left: 15px; top: 10px; backgro
und-color: salmon;"> | |
30 Two | |
31 <div style="opacity: 0.6; position: absolute; left: 15px; top: 10px; backg
round-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 | |
42 <div style="position: absolute; right: 50px;"> | |
43 <div style="background-color: red;"> | |
44 1 | |
45 </div> | |
46 <div style="position: absolute; left: 40px; top: 40px; z-index: 2; background-
color: pink;"> | |
47 4 | |
48 </div> | |
49 <div style="position: absolute; left: 20px; top: 20px; z-index: 0; background-
color: salmon;"> | |
50 2 | |
51 </div> | |
52 <div style="position: absolute; left: 35px; top: 20px; z-index: 1; background-
color: papayawhip;"> | |
53 3 | |
54 </div> | |
55 <div style="background-color: green;"> | |
56 1 | |
57 </div> | |
58 z-index | |
59 </div> | |
60 | |
61 <div style="position: absolute; bottom: 50px;"> | |
62 Clip-path | |
63 <div style="background-color: pink; -webkit-clip-path: circle(25px at 25px 25p
x);"> | |
64 <div style="background-color: salmon; -webkit-clip-path: circle(25px at 35px
35px);"> | |
65 <div style="background-color: papayawhip; -webkit-clip-path: circle(25px a
t 45px 45px);"></div> | |
66 </div> | |
67 </div> | |
68 </div> | |
69 | |
70 <script> | |
71 import "dart:sky.internals" as internals; | |
72 | |
73 void main() { | |
74 runAfterDisplay(() { | |
75 internals.notifyTestComplete(""); | |
76 }); | |
77 } | |
78 </script> | |
79 | |
80 </sky> | |
OLD | NEW |