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

Side by Side Diff: LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout.html

Issue 237823002: Properly shrink stretched flexbox children on relayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made comments clearer Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout-expected.txt » ('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 <style>
3 .flexbox {
4 display: flex;
5 background: papayawhip;
6 border: 1px solid midnightblue;
7 margin: 1em;
8 width: 50px;
9 }
10
11 .flexbox > div {
12 margin: 5px;
13 min-width: 10px;
14 min-height: 10px;
15 background-color: lawngreen;
16 }
17
18 .column {
19 -webkit-flex-flow: column;
20 }
21
22 .horizontal-tb {
23 -webkit-writing-mode: horizontal-tb;
24 }
25 .vertical-lr {
26 -webkit-writing-mode: vertical-lr;
27 }
28
29 .largeitem {
30 height: 200px;
31 width: 200px;
32 margin: 5px;
33 }
34 </style>
35 </head>
36 <script src="../../resources/check-layout.js"></script>
37 <body onload="checkLayout('.flexbox')">
38
39 <div class="flexbox">
40 <div data-expected-height=10 data-expected-width=10></div>
41 <div class="largeitem"></div>
42 </div>
43 <div class="flexbox column">
44 <div data-expected-height=10 data-expected-width=40></div>
45 <div class="largeitem"></div>
46 </div>
47
48 <div class="flexbox">
49 <div class="horizontal-tb" data-expected-height=10 data-expected-width=10></di v>
50 <div class="largeitem"></div>
51 </div>
52 <div class="flexbox column">
53 <div class="horizontal-tb" data-expected-height=10 data-expected-width=40></di v>
54 <div class="largeitem"></div>
55 </div>
56
57 <div class="flexbox">
58 <div class="vertical-lr" data-expected-height=10 data-expected-width=10></div>
59 <div class="largeitem"></div>
60 </div>
61 <div class="flexbox column">
62 <div class="vertical-lr" data-expected-height=10 data-expected-width=10></div>
63 <div class="largeitem"></div>
64 </div>
65
66 <script>
67 document.body.offsetTop;
68 var targets = document.getElementsByClassName('largeitem');
69 for (var i = targets.length - 1; i >= 0; i--) {
70 targets[i].remove();
71 };
72 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698