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

Side by Side Diff: LayoutTests/css3/flexbox/percentage-heights.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 <style> 3 <style>
4 .flexbox { 4 .flexbox {
5 display: -webkit-flex; 5 display: flex;
6 background-color: #aaa; 6 background-color: #aaa;
7 position: relative; 7 position: relative;
8 } 8 }
9 .flexbox :nth-child(1) { 9 .flexbox :nth-child(1) {
10 background-color: blue; 10 background-color: blue;
11 } 11 }
12 .flexbox :nth-child(2) { 12 .flexbox :nth-child(2) {
13 background-color: green; 13 background-color: green;
14 } 14 }
15 .flexbox :nth-child(3) { 15 .flexbox :nth-child(3) {
16 background-color: red; 16 background-color: red;
17 } 17 }
18 18
19 .flexbox > div { 19 .flexbox > div {
20 width: 40%; 20 width: 40%;
21 height: 40%; 21 height: 40%;
22 } 22 }
23 .column { 23 .column {
24 -webkit-flex-flow: column wrap; 24 flex-flow: column wrap;
25 width: 100px; 25 width: 100px;
26 height: 100px; 26 height: 100px;
27 -webkit-align-content: flex-start; 27 align-content: flex-start;
28 } 28 }
29 </style> 29 </style>
30 <script src="../../resources/check-layout.js"></script> 30 <script src="../../resources/check-layout.js"></script>
31 <body onload="checkLayout('.flexbox')"> 31 <body onload="checkLayout('.flexbox')">
32 32
33 <div class="flexbox column"> 33 <div class="flexbox column">
34 <div data-expected-height="40" data-offset-x="0" data-offset-y="0"></div> 34 <div data-expected-height="40" data-offset-x="0" data-offset-y="0"></div>
35 <div data-expected-height="40" data-offset-x="0" data-offset-y="40"></div> 35 <div data-expected-height="40" data-offset-x="0" data-offset-y="40"></div>
36 <div data-expected-height="40" data-offset-x="40" data-offset-y="0"></div> 36 <div data-expected-height="40" data-offset-x="40" data-offset-y="0"></div>
37 </div> 37 </div>
38 38
39 <div class="flexbox column"> 39 <div class="flexbox column">
40 <div data-expected-height="40" data-offset-x="0" data-offset-y="0" style="ma rgin-bottom: 10%"></div> 40 <div data-expected-height="40" data-offset-x="0" data-offset-y="0" style="ma rgin-bottom: 10%"></div>
41 <div data-expected-height="40" data-offset-x="40" data-offset-y="0" style="m argin-bottom: 20%"></div> 41 <div data-expected-height="40" data-offset-x="40" data-offset-y="0" style="m argin-bottom: 20%"></div>
42 <div data-expected-height="40" data-offset-x="40" data-offset-y="60"></div> 42 <div data-expected-height="40" data-offset-x="40" data-offset-y="60"></div>
43 </div> 43 </div>
44 44
45 <div class="flexbox column"> 45 <div class="flexbox column">
46 <div data-expected-height="20" data-offset-x="0" data-offset-y="0" style="-w ebkit-flex: 1; min-height: 0; max-height: 20%"></div> 46 <div data-expected-height="20" data-offset-x="0" data-offset-y="0" style="fl ex: 1; min-height: 0; max-height: 20%"></div>
47 <div data-expected-height="40" data-offset-x="0" data-offset-y="20"></div> 47 <div data-expected-height="40" data-offset-x="0" data-offset-y="20"></div>
48 <div data-expected-height="40" data-offset-x="0" data-offset-y="60"></div> 48 <div data-expected-height="40" data-offset-x="0" data-offset-y="60"></div>
49 </div> 49 </div>
50 50
51 <div class="flexbox column" style="-webkit-writing-mode: vertical-rl"> 51 <div class="flexbox column" style="-webkit-writing-mode: vertical-rl">
52 <div data-expected-width="40" data-offset-x="60" data-offset-y="0"></div> 52 <div data-expected-width="40" data-offset-x="60" data-offset-y="0"></div>
53 <div data-expected-width="40" data-offset-x="20" data-offset-y="0"></div> 53 <div data-expected-width="40" data-offset-x="20" data-offset-y="0"></div>
54 <div data-expected-width="40" data-offset-x="60" data-offset-y="40"></div> 54 <div data-expected-width="40" data-offset-x="60" data-offset-y="40"></div>
55 </div> 55 </div>
56 56
57 <div class="flexbox column" style="-webkit-writing-mode: vertical-rl"> 57 <div class="flexbox column" style="-webkit-writing-mode: vertical-rl">
58 <div data-expected-width="40" data-offset-x="60" data-offset-y="0" style="ma rgin-bottom: 10%"></div> 58 <div data-expected-width="40" data-offset-x="60" data-offset-y="0" style="ma rgin-bottom: 10%"></div>
59 <div data-expected-width="40" data-offset-x="20" data-offset-y="0" style="ma rgin-bottom: 20%"></div> 59 <div data-expected-width="40" data-offset-x="20" data-offset-y="0" style="ma rgin-bottom: 20%"></div>
60 <div data-expected-width="40" data-offset-x="60" data-offset-y="60"></div> 60 <div data-expected-width="40" data-offset-x="60" data-offset-y="60"></div>
61 </div> 61 </div>
62 62
63 <div class="flexbox column" style="-webkit-writing-mode: vertical-rl"> 63 <div class="flexbox column" style="-webkit-writing-mode: vertical-rl">
64 <div data-expected-width="20" data-offset-x="80" data-offset-y="0" style="-w ebkit-flex: 1; min-width: 0; max-width: 20%"></div> 64 <div data-expected-width="20" data-offset-x="80" data-offset-y="0" style="fl ex: 1; min-width: 0; max-width: 20%"></div>
65 <div data-expected-width="40" data-offset-x="40" data-offset-y="0"></div> 65 <div data-expected-width="40" data-offset-x="40" data-offset-y="0"></div>
66 <div data-expected-width="40" data-offset-x="0" data-offset-y="0"></div> 66 <div data-expected-width="40" data-offset-x="0" data-offset-y="0"></div>
67 </div> 67 </div>
68 68
69 </body> 69 </body>
70 </html> 70 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/flexbox/percent-margins.html ('k') | LayoutTests/css3/flexbox/percentage-sizes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698