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

Side by Side Diff: LayoutTests/css3/flexbox/flex-algorithm-min-max.html

Issue 1088633002: Unprefix flexbox tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whoops, a > went missing Created 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <link href="resources/flexbox.css" rel="stylesheet"> 3 <link href="resources/flexbox.css" rel="stylesheet">
4 <style> 4 <style>
5 body { 5 body {
6 margin: 0; 6 margin: 0;
7 } 7 }
8 .flexbox { 8 .flexbox {
9 width: 600px; 9 width: 600px;
10 background-color: #aaa; 10 background-color: #aaa;
11 position: relative; 11 position: relative;
12 } 12 }
13 .flexbox div { 13 .flexbox div {
14 height: 20px; 14 height: 20px;
15 border: 0; 15 border: 0;
16 } 16 }
17 17
18 .flexbox :nth-child(1) { 18 .flexbox :nth-child(1) {
19 background-color: blue; 19 background-color: blue;
20 } 20 }
21 .flexbox :nth-child(2) { 21 .flexbox :nth-child(2) {
22 background-color: green; 22 background-color: green;
23 } 23 }
24 .flexbox :nth-child(3) { 24 .flexbox :nth-child(3) {
25 background-color: red; 25 background-color: red;
26 } 26 }
27 27
28 .flex1 { 28 .flex1 {
29 -webkit-flex: 1; 29 flex: 1;
30 -moz-flex: 1;
31 } 30 }
32 .flex2 { 31 .flex2 {
33 -webkit-flex: 2; 32 flex: 2;
34 -moz-flex: 2;
35 } 33 }
36 .flex3 { 34 .flex3 {
37 -webkit-flex: 3; 35 flex: 3;
38 -moz-flex: 3;
39 } 36 }
40 .flex1-0-0 { 37 .flex1-0-0 {
41 -webkit-flex: 1 0 0px; 38 flex: 1 0 0px;
42 -moz-flex: 1 0 0px;
43 } 39 }
44 </style> 40 </style>
45 <script src="../../resources/check-layout.js"></script> 41 <script src="../../resources/check-layout.js"></script>
46 <body onload="checkLayout('.flexbox')"> 42 <body onload="checkLayout('.flexbox')">
47 <div class="flexbox"> 43 <div class="flexbox">
48 <div data-expected-width="100" class="flex1-0-0" style="max-width: 100px;"></d iv> 44 <div data-expected-width="100" class="flex1-0-0" style="max-width: 100px;"></d iv>
49 <div data-expected-width="250" class="flex1-0-0"></div> 45 <div data-expected-width="250" class="flex1-0-0"></div>
50 <div data-expected-width="250" class="flex1-0-0"></div> 46 <div data-expected-width="250" class="flex1-0-0"></div>
51 </div> 47 </div>
52 48
53 <!-- The first two flexitems should hit their max width and the third item fills the remaining space. --> 49 <!-- The first two flexitems should hit their max width and the third item fills the remaining space. -->
54 <div class="flexbox"> 50 <div class="flexbox">
55 <div data-expected-width="50" class="flex1-0-0" style="max-width: 50px;"></div > 51 <div data-expected-width="50" class="flex1-0-0" style="max-width: 50px;"></div >
56 <div data-expected-width="300" style="-webkit-flex: 4 0 0; -moz-flex: 4 0 0; m ax-width: 300px;"></div> 52 <div data-expected-width="300" style="flex: 4 0 0; max-width: 300px;"></div>
57 <div data-expected-width="250" style="-webkit-flex: 1 0 0; -moz-flex: 1 0 0">< /div> 53 <div data-expected-width="250" style="flex: 1 0 0;"></div>
58 </div> 54 </div>
59 55
60 <div class="flexbox"> 56 <div class="flexbox">
61 <div data-expected-width="100" class="flex1-0-0" style="max-width: 100px;"></d iv> 57 <div data-expected-width="100" class="flex1-0-0" style="max-width: 100px;"></d iv>
62 <div data-expected-width="300" style="-webkit-flex: 1 0 200px; -moz-flex: 1 0 200px; max-width: 300px;"></div> 58 <div data-expected-width="300" style="flex: 1 0 200px; max-width: 300px;"></di v>
63 <div data-expected-width="200" class="flex1-0-0"></div> 59 <div data-expected-width="200" class="flex1-0-0"></div>
64 </div> 60 </div>
65 61
66 <!-- Test min-width. --> 62 <!-- Test min-width. -->
67 <div class="flexbox"> 63 <div class="flexbox">
68 <div data-expected-width="350" style="-webkit-flex: 1 1 400px; -moz-flex: 1 1 400px; min-width: 350px;"></div> 64 <div data-expected-width="350" style="flex: 1 1 400px; min-width: 350px;"></di v>
69 <div data-expected-width="250" style="-webkit-flex: 1 1 400px; -moz-flex: 1 1 400px"></div> 65 <div data-expected-width="250" style="flex: 1 1 400px;"></div>
70 </div> 66 </div>
71 67
72 <!-- The flex items can overflow the flexbox. --> 68 <!-- The flex items can overflow the flexbox. -->
73 <div class="flexbox"> 69 <div class="flexbox">
74 <div data-expected-width="350" style="-webkit-flex: 1 1 400px; -moz-flex: 1 1 400px; min-width: 350px;"></div> 70 <div data-expected-width="350" style="flex: 1 1 400px; min-width: 350px;"></di v>
75 <div data-expected-width="300" style="-webkit-flex: 2 0 300px; -moz-flex: 2 0 300px; max-width: 300px;"></div> 71 <div data-expected-width="300" style="flex: 2 0 300px; max-width: 300px;"></di v>
76 <div data-expected-width="0" class="flex1-0-0"></div> 72 <div data-expected-width="0" class="flex1-0-0"></div>
77 </div> 73 </div>
78 74
79 <div class="flexbox"> 75 <div class="flexbox">
80 <div data-expected-width="100" data-offset-x="0" class="flex1-0-0" style="marg in: 0 auto; max-width: 100px;"></div> 76 <div data-expected-width="100" data-offset-x="0" class="flex1-0-0" style="marg in: 0 auto; max-width: 100px;"></div>
81 <div data-expected-width="333" data-offset-x="100" style="-webkit-flex: 2 0 0; -moz-flex: 2 0 0"></div> 77 <div data-expected-width="333" data-offset-x="100" style="flex: 2 0 0;"></div>
82 <div data-expected-width="167" data-offset-x="433" class="flex1-0-0"></div> 78 <div data-expected-width="167" data-offset-x="433" class="flex1-0-0"></div>
83 </div> 79 </div>
84 80
85 <!-- min-width and max-width take priority over the preferred size. --> 81 <!-- min-width and max-width take priority over the preferred size. -->
86 <div class="flexbox"> 82 <div class="flexbox">
87 <div data-expected-width="500" class="flex1-0-0" style="min-width: 300px"></di v> 83 <div data-expected-width="500" class="flex1-0-0" style="min-width: 300px"></di v>
88 <div data-expected-width="100" style="-webkit-flex: 1 0 50%; -moz-flex: 1 0 50 %; max-width: 100px"></div> 84 <div data-expected-width="100" style="flex: 1 0 50%; max-width: 100px"></div>
89 </div> 85 </div>
90 86
91 <div class="flexbox" style="width: 200px"> 87 <div class="flexbox" style="width: 200px">
92 <div data-expected-width="150" class="flex1" style="min-width: 150px"></div> 88 <div data-expected-width="150" class="flex1" style="min-width: 150px"></div>
93 <div data-expected-width="50" class="flex1" style="max-width: 90px"></div> 89 <div data-expected-width="50" class="flex1" style="max-width: 90px"></div>
94 </div> 90 </div>
95 91
96 <div class="flexbox" style="width: 200px"> 92 <div class="flexbox" style="width: 200px">
97 <div data-expected-width="150" class="flex1" style="min-width: 120px"></div> 93 <div data-expected-width="150" class="flex1" style="min-width: 120px"></div>
98 <div data-expected-width="50" class="flex1" style="max-width: 50px"></div> 94 <div data-expected-width="50" class="flex1" style="max-width: 50px"></div>
99 </div> 95 </div>
100 96
101 <div class="flexbox" style="width: 200px"> 97 <div class="flexbox" style="width: 200px">
102 <div data-expected-width="100" class="flex1" style="min-width: 100px"></div> 98 <div data-expected-width="100" class="flex1" style="min-width: 100px"></div>
103 <div data-expected-width="100" class="flex3"></div> 99 <div data-expected-width="100" class="flex3"></div>
104 </div> 100 </div>
105 101
106 <div class="flexbox" style="width: 200px"> 102 <div class="flexbox" style="width: 200px">
107 <div data-expected-width="150" style="-webkit-flex: 1 50px; -moz-flex: 1 50px; min-width: 100px"></div> 103 <div data-expected-width="150" style="flex: 1 50px; min-width: 100px"></div>
108 <div data-expected-width="50" style="-webkit-flex: 1 100px; -moz-flex: 1 100px ; max-width: 50px"></div> 104 <div data-expected-width="50" style="flex: 1 100px; max-width: 50px"></div>
109 </div> 105 </div>
110 106
111 <div class="flexbox"> 107 <div class="flexbox">
112 <div data-expected-width="80" class="flex1"></div> 108 <div data-expected-width="80" class="flex1"></div>
113 <div data-expected-width="160" class="flex2"></div> 109 <div data-expected-width="160" class="flex2"></div>
114 <div data-expected-width="360" class="flex1" style="min-width: 360px"></div> 110 <div data-expected-width="360" class="flex1" style="min-width: 360px"></div>
115 </div> 111 </div>
116 112
117 </body> 113 </body>
118 </html> 114 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/flexbox/flex-algorithm.html ('k') | LayoutTests/css3/flexbox/flex-algorithm-with-margins.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698