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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/flexbox/max-width-violation.html

Issue 2146603007: [css-flexbox] freezeInflexibleItems has to skip out-of-flow boxes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/Source/core/layout/LayoutFlexibleBox.cpp » ('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 .columns { 4 .columns {
5 display: flex; 5 display: flex;
6 width: 800px; 6 width: 800px;
7 } 7 }
8 8
9 .columns > div { 9 .columns > div {
10 background: #aaa; 10 background: #aaa;
11 } 11 }
12 12
13 .column1 { 13 .column1 {
14 width: 800px; 14 width: 800px;
15 overflow: auto; 15 overflow: auto;
16 max-width: 150px; 16 max-width: 150px;
17 } 17 }
18 18
19 .column2 { 19 .column2 {
20 flex: 0.8 0 0; 20 flex: 0.8 0 0;
21 } 21 }
22 22
23 .red { 23 .red {
24 position: absolute; 24 position: absolute;
25 width: 510px; 25 width: 510px;
26 background: red !important; 26 background: red !important;
27 height: 10px; 27 height: 10px;
28 z-index: -1; 28 z-index: -1;
29 } 29 }
30
31 .abspos {
32 position: absolute;
33 }
30 </style> 34 </style>
31 35
32 <script src="../../resources/testharness.js"></script> 36 <script src="../../resources/testharness.js"></script>
33 <script src="../../resources/testharnessreport.js"></script> 37 <script src="../../resources/testharnessreport.js"></script>
34 <script src="../../resources/check-layout-th.js"></script> 38 <script src="../../resources/check-layout-th.js"></script>
35 39
36 <body onload="checkLayout('.columns')"> 40 <body onload="checkLayout('.columns')">
37 <div id=log></div> 41 <div id=log></div>
38 42
39 43
40 <p>You should see no red</p> 44 <p>You should see no red</p>
41 45
42 <div class="columns"> 46 <div class="columns">
43 <div class="red"></div> 47 <div class="red"></div>
44 <div class="column1" data-expected-width="150"> 48 <div class="column1" data-expected-width="150">
45 Column 1 49 Column 1
46 </div> 50 </div>
47 <div class="column2" data-expected-width="520"> 51 <div class="column2" data-expected-width="520">
48 Column 2 52 Column 2
49 </div> 53 </div>
50 </div> 54 </div>
51 55
56 <p>This second part is just to ensure we don't assert</p>
57
58 <div class="columns">
59 <div class="column1 abspos" data-expected-width="150">
60 Column 1
61 </div>
62 <div class="column2" data-expected-width="640">
63 Column 2
64 </div>
65 </div>
66
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698