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

Side by Side Diff: LayoutTests/fast/table/table-toggle-paragraph-padding.html

Issue 22589002: Margins on children of display:table-cell elements get stuck at highest value. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/table/table-toggle-paragraph-padding-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/check-layout.js"></script>
3 <style>
4 * { font: 15px/1 Ahem }
5 .cell { border: 5px solid pink; }
6 .backgroundSalmon { background-color: salmon; }
7 .cell { display:table-cell; }
8 </style>
9
10 <body onload="checkLayout('.cell')">
11 <h3>Test for chromium bug : <a href="https://code.google.com/p/chromium/issues/d etail?id=241331">241331</a>. Margins on children of display:table-cell elements get stuck at highest value.</h3>
12 <h4>BeforeMargin of the row was not reseting back to 0 when margin of the cell's child is changed from 100px to 0.</h4>
13 The two blocks below should look identical.
14 <br/><br/>
15
16 <div>
17 <div class="cell" data-expected-height="25">a</div>
18 <div class="cell" data-expected-height="25"><div class="backgroundSalmon">b< /div></div>
19 </div>
20 <br>
21 <div>
22 <div class="cell" data-expected-height="25">a</div>
23 <div class="cell" data-expected-height="25"><div class="backgroundSalmon tog gle" style="margin:100px">b</div></div>
24 </div>
25
26 <script>
27 document.body.offsetWidth;
28 document.querySelector('.toggle').style.margin = 0;
29 </script>
30 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/table/table-toggle-paragraph-padding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698