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

Unified Diff: sky/tests/layout/position-absolute.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
« no previous file with comments | « no previous file | sky/tests/layout/position-absolute-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/layout/position-absolute.sky
diff --git a/sky/tests/layout/position-absolute.sky b/sky/tests/layout/position-absolute.sky
new file mode 100644
index 0000000000000000000000000000000000000000..d67a56e8407a14505c30c2c7d90e2dc7c55535d7
--- /dev/null
+++ b/sky/tests/layout/position-absolute.sky
@@ -0,0 +1,49 @@
+<import src="../resources/dump-as-render-tree.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>
« no previous file with comments | « no previous file | sky/tests/layout/position-absolute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698