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

Side by Side Diff: sky/tests/lowlevel/layers.sky

Issue 944073006: Remove the concept of staticly positioned absolutes. (Closed) Base URL: git@github.com:domokit/mojo.git@position
Patch Set: Created 5 years, 10 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
1 <sky> 1 <sky>
2 2
3 <import src="../resources/run-after-display.sky" /> 3 <import src="../resources/run-after-display.sky" />
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;"> 25 <div style="position: absolute; top: 250px;">
26 Opacity 26 Opacity
27 <div style="opacity: 0.8; background-color: pink;"> 27 <div style="opacity: 0.8; background-color: pink; transform: translate3d(0, 0, 0)">
28 One 28 One
29 <div style="opacity: 0.7; position: absolute; left: 10px; background-color: salmon;"> 29 <div style="opacity: 0.7; position: absolute; left: 15px; top: 10px; backgro und-color: salmon;">
30 Two 30 Two
31 <div style="opacity: 0.6; position: absolute; left: 20px; background-color : papayawhip;"> 31 <div style="opacity: 0.6; position: absolute; left: 15px; top: 10px; backg round-color: papayawhip;">
32 Three 32 Three
33 <div style="opacity: 0; transform: translate3d(0, 10px, 0); background-c olor: papayawhip;"> 33 <div style="opacity: 0; transform: translate3d(0, 10px, 0); background-c olor: papayawhip;">
34 Clear 34 Clear
35 </div> 35 </div>
36 </div> 36 </div>
37 </div> 37 </div>
38 </div> 38 </div>
39 </div> 39 </div>
40 40
41 41
(...skipping 29 matching lines...) Expand all
71 import "dart:sky.internals" as internals; 71 import "dart:sky.internals" as internals;
72 72
73 void main() { 73 void main() {
74 runAfterDisplay(() { 74 runAfterDisplay(() {
75 internals.notifyTestComplete(""); 75 internals.notifyTestComplete("");
76 }); 76 });
77 } 77 }
78 </script> 78 </script>
79 79
80 </sky> 80 </sky>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698