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

Unified Diff: sky/tests/lowlevel/layers.sky

Issue 884503003: Add some basic test coverage for layers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/tests/lowlevel/layers-expected.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/lowlevel/layers.sky
diff --git a/sky/tests/lowlevel/layers.sky b/sky/tests/lowlevel/layers.sky
new file mode 100644
index 0000000000000000000000000000000000000000..f61ec8fb922ab1ff8d64bd775e862b2c18a0b2a6
--- /dev/null
+++ b/sky/tests/lowlevel/layers.sky
@@ -0,0 +1,59 @@
+<sky>
+
+<import src="../resources/run-after-display.sky" as="runAfterDisplay" />
+<style>
+ sky {
+ padding: 10px;
+ }
+ div {
+ width: 50px;
+ height: 50px;
+ white-space: nowrap;
+ }
+</style>
+Transforms
+<div style="transform: translate3d(10px, 10px, 0); background-color: pink;">
+ One
+ <div style="transform: translate3d(10px, 10px, 0); background-color: salmon;">
+ Two
+ <div style="transform: translate3d(10px, 10px, 0); background-color: papayawhip;">
+ Three
+ </div>
+ </div>
+</div>
+
+<div style="position: absolute; right: 50px;">
+ <div style="background-color: red;">
+ 1
+ </div>
+ <div style="position: absolute; left: 40px; top: 40px; z-index: 2; background-color: pink;">
+ 4
+ </div>
+ <div style="position: absolute; left: 20px; top: 20px; z-index: 0; background-color: salmon;">
+ 2
+ </div>
+ <div style="position: absolute; left: 35px; top: 20px; z-index: 1; background-color: papayawhip;">
+ 3
+ </div>
+ <div style="background-color: green;">
+ 1
+ </div>
+ z-index
+</div>
+
+<div style="position: absolute; bottom: 50px;">
+ Clip-path
+ <div style="background-color: pink; -webkit-clip-path: circle(25px at 25px 25px);">
+ <div style="background-color: salmon; -webkit-clip-path: circle(25px at 35px 35px);">
+ <div style="background-color: papayawhip; -webkit-clip-path: circle(25px at 45px 45px);"></div>
+ </div>
+ </div>
+</div>
+
+<script>
+runAfterDisplay(function() {
+ internals.notifyTestComplete("");
+});
+</script>
+
+</sky>
« no previous file with comments | « no previous file | sky/tests/lowlevel/layers-expected.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698