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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/flexbox/flex-item-contains-strict.html

Issue 2216903004: [css-flexbox] Correctly implement contain: size on a flex item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 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
« 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
(Empty)
1 <!DOCTYPE html>
2
3 <style>
4 .inline-flex {
5 display: inline-flex;
6 outline: solid;
7 background: red;
8 }
9 </style>
10
11 <script src="../../resources/testharness.js"></script>
12 <script src="../../resources/testharnessreport.js"></script>
13 <script src="../../resources/check-layout-th.js"></script>
14
15 <body onload="checkLayout('.inline-flex')">
16 <p>Stretched:</p>
17 <div class="inline-flex" style="display: inline-flex; flex-direction: column;" d ata-expected-width="0" data-expected-height="0">
18 <div style="contain: strict;" data-expected-width="0" data-expected-height="0" >Column</div>
19 </div>
20
21 <div class="inline-flex" data-expected-width="0" data-expected-height="0">
22 <div style="contain: strict;" data-expected-width="0" data-expected-height="0" >Row</div>
23 </div>
24
25 <div class="inline-flex" style="display: inline-flex; flex-direction: column;" d ata-expected-width="30" data-expected-height="30">
26 <div style="contain: strict; width: 30px; height: 30px;" data-expected-width=" 30" data-expected-height="30">Column</div>
27 </div>
28
29 <div class="inline-flex" style="display: inline-flex;" data-expected-width="30" data-expected-height="30">
30 <div style="contain: strict; width: 30px; height: 30px;" data-expected-width=" 30" data-expected-height="30">Row</div>
31 </div>
32
33
34 <p>Flex-start:</p>
35 <div class="inline-flex" style="flex-direction: column; align-items: flex-start; " data-expected-width="0" data-expected-height="0">
36 <div style="contain: strict;" data-expected-width="0" data-expected-height="0" >Column</div>
37 </div>
38
39 <div class="inline-flex" style="align-items: flex-start;" data-expected-width="0 " data-expected-height="0">
40 <div style="contain: strict;" data-expected-width="0" data-expected-height="0" >Row</div>
41 </div>
42
43 <div class="inline-flex" style="flex-direction: column; align-items: flex-start; " data-expected-width="30" data-expected-height="30">
44 <div style="contain: strict; width: 30px; height: 30px;" data-expected-width=" 30" data-expected-height="30">Column</div>
45 </div>
46
47 <div class="inline-flex" style="align-items: flex-start;" data-expected-width="3 0" data-expected-height="30">
48 <div style="contain: strict; width: 30px; height: 30px;" data-expected-width=" 30" data-expected-height="30">Row</div>
49 </div>
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