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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/flexbox/alignContent-applies-with-flexWrap-wrap-with-single-line.html

Issue 2289793003: Revert of [css-flexbox] align-content should apply even when there's just a single line (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .default { 5 .default {
6 display: flex; 6 display: flex;
7 flex-wrap: wrap; 7 flex-wrap: wrap;
8 position: relative; 8 position: relative;
9 height: 70px; 9 height: 75px;
10 border: 1px solid red; 10 border: 1px solid red;
11 margin: 5px; 11 margin: 5px;
12 } 12 }
13 13
14 .default > div {
15 height: 20px;
16 }
17
18 .verticalWriting { 14 .verticalWriting {
19 display: flex; 15 display: flex;
20 flex-wrap: wrap; 16 flex-wrap: wrap;
21 position: relative; 17 position: relative;
22 width: 70px; 18 width: 75px;
23 border: 1px solid red; 19 border: 1px solid red;
24 margin: 5px; 20 margin: 5px;
25 writing-mode: vertical-lr; 21 writing-mode: vertical-lr;
26 } 22 }
27
28 .verticalWriting > div {
29 width: 20px;
30 }
31 </style> 23 </style>
32 <script src="../../resources/testharness.js"></script> 24 <script src="../../resources/testharness.js"></script>
33 <script src="../../resources/testharnessreport.js"></script> 25 <script src="../../resources/testharnessreport.js"></script>
34 <script src="../../resources/check-layout-th.js"></script> 26 <script src="../../resources/check-layout-th.js"></script>
35 </head> 27 </head>
36 <body onload="checkLayout('.default, .verticalWriting'); "> 28 <body onload="checkLayout('.default, .verticalWriting'); ">
37 <div id=log></div> 29 <div id=log></div>
38 <p>Test that we honor align-content even in single-line flex containers</p> 30 <p>Test for BUG=324178: Chrome incorrectly honors "align-content" in "flex-wrap: wrap" flex containers that only have a single line</p>
39 <div class="default" style="align-content: flex-start"> 31 <div class="default" style="align-content: flex-start">
40 <div data-offset-y="0">This text should be at the top of its container</div> 32 <div data-offset-y="0">This text should be at the top of it's container</div>
41 </div> 33 </div>
42 <div class="default" style="align-content: flex-end"> 34 <div class="default" style="align-content: flex-end">
43 <div data-offset-y="50">This text should be at the bottom of its container</div> 35 <div data-offset-y="0">This text should be at the top of it's container</div>
44 </div> 36 </div>
45 <div class="default" style="align-content: center"> 37 <div class="default" style="align-content: center">
46 <div data-offset-y="25">This text should be centered in its container</div> 38 <div data-offset-y="0">This text should be at the top of it's container</div>
47 </div> 39 </div>
48 <div class="default" style="align-content: space-between"> 40 <div class="default" style="align-content: space-between">
49 <div data-offset-y="0">This text should be at the top of its container</div> 41 <div data-offset-y="0">This text should be at the top of it's container</div>
50 </div> 42 </div>
51 <div class="default" style="align-content: space-around"> 43 <div class="default" style="align-content: space-around">
52 <div data-offset-y="25">This text should be centered in its container</div> 44 <div data-offset-y="0">This text should be at the top of it's container</div>
53 </div> 45 </div>
54 <div class="default" style="align-content: stretch"> 46 <div class="default" style="align-content: stretch">
55 <div data-offset-y="0">This text should be at the top of its container</div> 47 <div data-offset-y="0">This text should be at the top of it's container</div>
56 </div> 48 </div>
57 <div class="verticalWriting" style="align-content: flex-start"> 49 <div class="verticalWriting" style="align-content: flex-start">
58 <div data-offset-x="0">This text should be at the left of its container</div> 50 <div data-offset-x="0">This text should be at the left of it's container</div>
59 </div> 51 </div>
60 <div class="verticalWriting" style="align-content: flex-end"> 52 <div class="verticalWriting" style="align-content: flex-end">
61 <div data-offset-x="50">This text should be at the right of its container</div> 53 <div data-offset-x="0">This text should be at the left of it's container</div>
62 </div> 54 </div>
63 <div class="verticalWriting" style="align-content: center"> 55 <div class="verticalWriting" style="align-content: center">
64 <div data-offset-x="25">This text should be centered in its container</div> 56 <div data-offset-x="0">This text should be at the left of it's container</div>
65 </div> 57 </div>
66 <div class="verticalWriting" style="align-content: space-between"> 58 <div class="verticalWriting" style="align-content: space-between">
67 <div data-offset-x="0">This text should be at the left of its container</div> 59 <div data-offset-x="0">This text should be at the left of it's container</div>
68 </div> 60 </div>
69 <div class="verticalWriting" style="align-content: space-around"> 61 <div class="verticalWriting" style="align-content: space-around">
70 <div data-offset-x="25">This text should be centered in its container</div> 62 <div data-offset-x="0">This text should be at the left of it's container</div>
71 </div> 63 </div>
72 <div class="verticalWriting" style="align-content: stretch"> 64 <div class="verticalWriting" style="align-content: stretch">
73 <div data-offset-x="0">This text should be at the left of its container</div> 65 <div data-offset-x="0">This text should be at the left of it's container</div>
74 </div> 66 </div>
75 </body> 67 </body>
76 </html> 68 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/LayoutTests/css3/flexbox/flexbox-wordwrap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698