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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-intrinsic-dimensions/height-css-tables-expected.html

Issue 2692083002: Avoid unnecessary cell layout on nested percent height tables (Closed)
Patch Set: Created 3 years, 10 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 | third_party/WebKit/LayoutTests/paint/invalidation/table-two-pass-layout-overpaint-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <style> 3 <style>
4 .item { height: 50px; width: 50px; border: 1px solid blue; } 4 .item { height: 50px; width: 50px; border: 1px solid blue; }
5 5
6 .container { height: 100px; border: 5px solid pink; } 6 .container { height: 100px; border: 5px solid pink; }
7 .table { border: 2px solid red; display: table; border-spacing: 2px; } 7 .table { border: 2px solid red; display: table; border-spacing: 2px; }
8 .td { border: 2px solid green; display: table-cell; } 8 .td { border: 2px solid green; display: table-cell; }
9 </style> 9 </style>
10 10
(...skipping 10 matching lines...) Expand all
21 </div> 21 </div>
22 22
23 <div class="container"> 23 <div class="container">
24 <div class="table" style="height: 100%; box-sizing: border-box;"> 24 <div class="table" style="height: 100%; box-sizing: border-box;">
25 <div class="td"> 25 <div class="td">
26 <div class="item"></div> 26 <div class="item"></div>
27 </div> 27 </div>
28 </div> 28 </div>
29 </div> 29 </div>
30 30
31 31 <!-- crbug.com/690087: We use 99px instead of 100px because we end up discarding 1px when trying
32 <div class="table container" style="display: block; float: left; height: 98px;"> 32 to allocate the spare pixels to the table. -->
33 <div class="td" style="height: 90px;" style="display: block;"> 33 <div class="table container" style="display: block; float: left; height: 99px;">
34 <div class="td" style="height: 91px;" style="display: block;">
34 <div class="item"></div> 35 <div class="item"></div>
35 </div> 36 </div>
36 </div> 37 </div>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/table-two-pass-layout-overpaint-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698