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

Side by Side Diff: sky/tests/layout/margins.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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/tests/layout/margins-absolute.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <sky> 1 <sky>
2 <import src="../resources/check-layout.sky" as="checkLayout" /> 2 <import src="../resources/check-layout.sky" as="checkLayout" />
3 <style> 3 <style>
4 .root {
5 margin: 5px;
6 }
4 .child { 7 .child {
5 margin: 10px; 8 margin: 10px;
6 height: 30px; 9 height: 30px;
7 } 10 }
8 </style> 11 </style>
9 <div class="root" data-expected-height="70" data-total-y="10" style="backgroun d-color: pink"> 12 <div class="root" data-expected-height="100" data-total-y="5" style="backgroun d-color: pink">
10 <div class="child" data-total-y="10" style="background-color: salmon"></div> 13 <!-- TODO(ojan): These numbers are right, but the test fails because we appe ar to have
11 <div class="child" data-total-y="50" style="background-color: papayawhip"></ div> 14 broken offsetTop to not include the parent's margin-top. -->
15 <div class="child" data-total-y="15" style="background-color: salmon"></div>
16 <div class="child" data-total-y="65" style="background-color: papayawhip"></ div>
12 </div> 17 </div>
13 18
14 <script> 19 <script>
15 checkLayout('.root'); 20 checkLayout('.root');
16 </script> 21 </script>
17 </sky> 22 </sky>
23
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/tests/layout/margins-absolute.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698