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

Side by Side Diff: LayoutTests/fast/css/box-sizing-border-box-dynamic-padding-border-update.html

Issue 12039074: Merge 140721 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1393/
Patch Set: Created 7 years, 11 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 <body>
3 <p>Test if child blocks are correctly laid out when padding/border of the box-si zing:border-box parent is updated.</p>
4
5 <div id="target1" style="width:100px; box-sizing:border-box; border:0 solid;">
6 <div data-expected-width="50">The quick brown fox jumps over the lazy dog.</div>
7 </div>
8 <div id="target2" style="width:100px; box-sizing:border-box;">
9 <div data-expected-width="50">The quick brown fox jumps over the lazy dog.</div>
10 </div>
11 <div id="target3" style="width:100px; box-sizing:border-box;">
12 <div data-expected-width="50">The quick brown fox jumps over the lazy dog.</div>
13 </div>
14 <script src="../../resources/check-layout.js"></script>
15 <script>
16 document.body.offsetLeft;
17 document.getElementById('target1').style.borderLeftWidth = '50px';
18 document.getElementById('target2').style.paddingLeft = '50px';
19 document.getElementById('target3').setAttribute('style', 'width:50px; box-sizing :content-box; border-left:50px solid;');
20 checkLayout('#target1');
21 checkLayout('#target2');
22 checkLayout('#target3');
23 </script>
24 </body>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/fast/css/box-sizing-border-box-dynamic-padding-border-update-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698