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

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

Issue 2191683003: [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: Mark Firefox tests as failing; they haven't fixed this bug yet 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
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: 75px; 9 height: 70px;
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
14 .verticalWriting { 18 .verticalWriting {
15 display: flex; 19 display: flex;
16 flex-wrap: wrap; 20 flex-wrap: wrap;
17 position: relative; 21 position: relative;
18 width: 75px; 22 width: 70px;
19 border: 1px solid red; 23 border: 1px solid red;
20 margin: 5px; 24 margin: 5px;
21 writing-mode: vertical-lr; 25 writing-mode: vertical-lr;
22 } 26 }
27
28 .verticalWriting > div {
29 width: 20px;
30 }
23 </style> 31 </style>
24 <script src="../../resources/testharness.js"></script> 32 <script src="../../resources/testharness.js"></script>
25 <script src="../../resources/testharnessreport.js"></script> 33 <script src="../../resources/testharnessreport.js"></script>
26 <script src="../../resources/check-layout-th.js"></script> 34 <script src="../../resources/check-layout-th.js"></script>
27 </head> 35 </head>
28 <body onload="checkLayout('.default, .verticalWriting'); "> 36 <body onload="checkLayout('.default, .verticalWriting'); ">
29 <div id=log></div> 37 <div id=log></div>
30 <p>Test for BUG=324178: Chrome incorrectly honors "align-content" in "flex-wrap: wrap" flex containers that only have a single line</p> 38 <p>Test that we honor align-content even in single-line flex containers</p>
31 <div class="default" style="align-content: flex-start"> 39 <div class="default" style="align-content: flex-start">
32 <div data-offset-y="0">This text should be at the top of it's container</div> 40 <div data-offset-y="0">This text should be at the top of its container</div>
33 </div> 41 </div>
34 <div class="default" style="align-content: flex-end"> 42 <div class="default" style="align-content: flex-end">
35 <div data-offset-y="0">This text should be at the top of it's container</div> 43 <div data-offset-y="50">This text should be at the bottom of its container</div>
36 </div> 44 </div>
37 <div class="default" style="align-content: center"> 45 <div class="default" style="align-content: center">
38 <div data-offset-y="0">This text should be at the top of it's container</div> 46 <div data-offset-y="25">This text should be centered in its container</div>
39 </div> 47 </div>
40 <div class="default" style="align-content: space-between"> 48 <div class="default" style="align-content: space-between">
41 <div data-offset-y="0">This text should be at the top of it's container</div> 49 <div data-offset-y="0">This text should be at the top of its container</div>
42 </div> 50 </div>
43 <div class="default" style="align-content: space-around"> 51 <div class="default" style="align-content: space-around">
44 <div data-offset-y="0">This text should be at the top of it's container</div> 52 <div data-offset-y="25">This text should be centered in its container</div>
45 </div> 53 </div>
46 <div class="default" style="align-content: stretch"> 54 <div class="default" style="align-content: stretch">
47 <div data-offset-y="0">This text should be at the top of it's container</div> 55 <div data-offset-y="0">This text should be at the top of its container</div>
48 </div> 56 </div>
49 <div class="verticalWriting" style="align-content: flex-start"> 57 <div class="verticalWriting" style="align-content: flex-start">
50 <div data-offset-x="0">This text should be at the left of it's container</div> 58 <div data-offset-x="0">This text should be at the left of its container</div>
51 </div> 59 </div>
52 <div class="verticalWriting" style="align-content: flex-end"> 60 <div class="verticalWriting" style="align-content: flex-end">
53 <div data-offset-x="0">This text should be at the left of it's container</div> 61 <div data-offset-x="50">This text should be at the right of its container</div>
54 </div> 62 </div>
55 <div class="verticalWriting" style="align-content: center"> 63 <div class="verticalWriting" style="align-content: center">
56 <div data-offset-x="0">This text should be at the left of it's container</div> 64 <div data-offset-x="25">This text should be centered in its container</div>
57 </div> 65 </div>
58 <div class="verticalWriting" style="align-content: space-between"> 66 <div class="verticalWriting" style="align-content: space-between">
59 <div data-offset-x="0">This text should be at the left of it's container</div> 67 <div data-offset-x="0">This text should be at the left of its container</div>
60 </div> 68 </div>
61 <div class="verticalWriting" style="align-content: space-around"> 69 <div class="verticalWriting" style="align-content: space-around">
62 <div data-offset-x="0">This text should be at the left of it's container</div> 70 <div data-offset-x="25">This text should be centered in its container</div>
63 </div> 71 </div>
64 <div class="verticalWriting" style="align-content: stretch"> 72 <div class="verticalWriting" style="align-content: stretch">
65 <div data-offset-x="0">This text should be at the left of it's container</div> 73 <div data-offset-x="0">This text should be at the left of its container</div>
66 </div> 74 </div>
67 </body> 75 </body>
68 </html> 76 </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