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

Unified Diff: sky/tests/layout/margins-absolute.sky

Issue 700743002: Remove margin collapsing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/tests/layout/margins.sky ('k') | sky/tests/layout/margins-absolute-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/layout/margins-absolute.sky
diff --git a/sky/tests/layout/margins-absolute.sky b/sky/tests/layout/margins-absolute.sky
new file mode 100644
index 0000000000000000000000000000000000000000..02d6a76b585c511a7c15abc6f7b8cfd46d01aa3c
--- /dev/null
+++ b/sky/tests/layout/margins-absolute.sky
@@ -0,0 +1,21 @@
+<sky>
+ <import src="../resources/check-layout.sky" as="checkLayout" />
+ <style>
+ .root {
+ margin: 5px;
+ }
+ .child {
+ margin: 10px;
+ height: 30px;
+ position: absolute;
+ }
+ </style>
+ <div class="root" data-expected-height="0" data-total-y="5" style="background-color: pink">
+ <div class="child" data-total-y="15" style="background-color: salmon"></div>
+ </div>
+
+ <script>
+ checkLayout('.root');
+ </script>
+</sky>
+
« no previous file with comments | « sky/tests/layout/margins.sky ('k') | sky/tests/layout/margins-absolute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698