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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/table/table-toggle-paragraph-padding.html
diff --git a/LayoutTests/fast/table/table-toggle-paragraph-padding.html b/LayoutTests/fast/table/table-toggle-paragraph-padding.html
new file mode 100644
index 0000000000000000000000000000000000000000..5cc274d742e74e69c9e235ea35d7836398496b5a
--- /dev/null
+++ b/LayoutTests/fast/table/table-toggle-paragraph-padding.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<script src="../../resources/check-layout.js"></script>
+<style>
+* { font: 15px/1 Ahem }
+.cell { border: 5px solid pink; }
+.backgroundSalmon { background-color: salmon; }
+.cell { display:table-cell; }
+</style>
+
+<body onload="checkLayout('.cell')">
+<h3>Test for chromium bug : <a href="https://code.google.com/p/chromium/issues/detail?id=241331">241331</a>. Margins on children of display:table-cell elements get stuck at highest value.</h3>
+<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>
+The two blocks below should look identical.
+<br/><br/>
+
+<div>
+ <div class="cell" data-expected-height="25">a</div>
+ <div class="cell" data-expected-height="25"><div class="backgroundSalmon">b</div></div>
+</div>
+<br>
+<div>
+ <div class="cell" data-expected-height="25">a</div>
+ <div class="cell" data-expected-height="25"><div class="backgroundSalmon toggle" style="margin:100px">b</div></div>
+</div>
+
+<script>
+document.body.offsetWidth;
+document.querySelector('.toggle').style.margin = 0;
+</script>
+</body>
« 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