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

Side by Side Diff: LayoutTests/css3/flexbox/flex-no-flex.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 body { 4 body {
5 margin: 0; 5 margin: 0;
6 } 6 }
7 .flexbox { 7 .flexbox {
8 display: -webkit-flex; 8 display: flex;
9 background-color: #aaa; 9 background-color: #aaa;
10 position: relative; 10 position: relative;
11 } 11 }
12 .flexbox :nth-child(1) { 12 .flexbox :nth-child(1) {
13 background-color: blue; 13 background-color: blue;
14 } 14 }
15 .flexbox :nth-child(2) { 15 .flexbox :nth-child(2) {
16 background-color: green; 16 background-color: green;
17 } 17 }
18 18
19 .row { 19 .row {
20 width: 200px; 20 width: 200px;
21 height: 200px; 21 height: 200px;
22 } 22 }
23 .row div { 23 .row div {
24 -webkit-flex: 1 auto; 24 flex: 1 auto;
25 } 25 }
26 .noflex .row :nth-child(1) { 26 .noflex .row :nth-child(1) {
27 width: 50px; 27 width: 50px;
28 -webkit-flex: none; 28 flex: none;
29 } 29 }
30 30
31 .column { 31 .column {
32 -webkit-flex-direction: column; 32 flex-direction: column;
33 width: 200px; 33 width: 200px;
34 height: 200px; 34 height: 200px;
35 } 35 }
36 .column div { 36 .column div {
37 -webkit-flex: 1 auto; 37 flex: 1 auto;
38 } 38 }
39 .noflex .column :nth-child(1) { 39 .noflex .column :nth-child(1) {
40 height: 50px; 40 height: 50px;
41 -webkit-flex: none; 41 flex: none;
42 } 42 }
43 43
44 </style> 44 </style>
45 <script> 45 <script>
46 function runTest() 46 function runTest()
47 { 47 {
48 document.body.className = "noflex"; 48 document.body.className = "noflex";
49 checkLayout('.flexbox'); 49 checkLayout('.flexbox');
50 } 50 }
51 </script> 51 </script>
52 <script src="../../resources/check-layout.js"></script> 52 <script src="../../resources/check-layout.js"></script>
53 <body onload="runTest()"> 53 <body onload="runTest()">
54 54
55 <div class="flexbox row"> 55 <div class="flexbox row">
56 <div data-expected-width="50"></div> 56 <div data-expected-width="50"></div>
57 <div data-expected-width="150"></div> 57 <div data-expected-width="150"></div>
58 </div> 58 </div>
59 59
60 <div class="flexbox column"> 60 <div class="flexbox column">
61 <div data-expected-height="50"></div> 61 <div data-expected-height="50"></div>
62 <div data-expected-height="150"></div> 62 <div data-expected-height="150"></div>
63 </div> 63 </div>
64 64
65 </body> 65 </body>
66 </html> 66 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/flexbox/flex-longhand-parsing-expected.txt ('k') | LayoutTests/css3/flexbox/flex-order.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698