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

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: Simplify test case with Ref Test 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 .cell { border: 5px solid pink; }
4 .cell .thinger { background-color: salmon; }
Julien - ping for review 2013/08/08 22:15:51 This can be simplified to .thinger { ... } Also t
suchit.agrawal 2013/08/09 11:00:43 Done.
5 .cell { display:table-cell; }
6 </style>
7
8 <body>
9 <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>
10 <h4>Row's before margin was not reseting back to 0 when margin of the cell's chi ld is changed from 40px to 0.</h4>
Julien - ping for review 2013/08/08 22:15:51 s/40px/100px/
suchit.agrawal 2013/08/09 11:00:43 Done.
11 The two blocks below should look identical.
12 <br/><br/>
13
14 <div>
Julien - ping for review 2013/08/08 22:15:51 Do we really need to use an anonymous table by usi
ojan 2013/08/08 22:19:29 I tried that actually and couldn't get it to repro
suchit.agrawal 2013/08/09 11:00:43 I also tried it with table and td tags. But I am n
15 <div class="cell">a</div>
16 <div class="cell"><div class="thinger">b</div></div>
17 </div>
18 <br>
19 <div>
20 <div class="cell">a</div>
21 <div class="cell"><div class="thinger toggle" style="margin:100px">b</div></ div>
22 </div>
23
24 <script>
25 document.body.offsetWidth;
26 document.querySelector('.toggle').style.margin = 0;
Julien - ping for review 2013/08/08 22:15:51 This really look like it could be a checkLayout()
suchit.agrawal 2013/08/09 11:00:43 Done.
27 </script>
28 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698