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

Unified Diff: sky/tests/layout/position-absolute-pixels.sky

Issue 943113003: Add render tree dump and pixel tests for statically placed position:absolute. (Closed) Base URL: git@github.com:domokit/mojo.git@master
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 side-by-side diff with in-line comments
Download patch
Index: sky/tests/layout/position-absolute-pixels.sky
diff --git a/sky/tests/layout/position-absolute-pixels.sky b/sky/tests/layout/position-absolute-pixels.sky
new file mode 100644
index 0000000000000000000000000000000000000000..07b5772196592aced276e81e2db14d0e3c294e48
--- /dev/null
+++ b/sky/tests/layout/position-absolute-pixels.sky
@@ -0,0 +1,62 @@
+<import src="../resources/run-after-display.sky" />
+
+<style>
+ block, paragraph, flex {
+ width: 100px;
+ height: 100px;
+ margin-bottom: 50px;
+ /* Make it a positioning root. */
+ transform: translate3d(0, 0, 0);
+ }
+ block { background: pink; }
+ paragraph {
+ background: orange;
+ display: paragraph;
+ }
+ flex {
+ background: salmon;
+ display: flex;
+ }
+ spacer {
+ height: 30px;
+ width: 30px;
+ border: 5px solid purple;
+ background: papayawhip;
+ }
+ absolute {
+ position: absolute;
+ width: 20px;
+ height: 20px;
+ background: green;
+ }
+</style>
+<block>
+ <spacer />
+ <absolute />
+ <spacer />
+</block>
+
+<paragraph>
+ <spacer />
+ <absolute />
+ <spacer />
+</paragraph>
+
+<flex>
+ <spacer />
+ <absolute />
+ <spacer />
+</flex>
+
+<script>
+import "dart:sky";
+import "dart:sky.internals" as internals;
+
+void main() {
+ window.addEventListener("load", (_) {
+ runAfterDisplay(() {
+ internals.notifyTestComplete("");
+ });
+ });
+}
+</script>
« no previous file with comments | « sky/tests/layout/position-absolute-expected.txt ('k') | sky/tests/layout/position-absolute-pixels-expected.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698