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

Side by Side Diff: LayoutTests/css3/flexbox/auto-height-dynamic.html

Issue 1088633002: Unprefix flexbox tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 .flexbox { 5 .flexbox {
6 width: 600px; 6 width: 600px;
7 background-color: #aaa; 7 background-color: #aaa;
8 position: relative; 8 position: relative;
9 } 9 }
10 .flexbox :nth-child(1) { 10 .flexbox :nth-child(1) {
11 background-color: blue; 11 background-color: blue;
12 } 12 }
13 </style> 13 </style>
14 <script src="../../resources/check-layout.js"></script> 14 <script src="../../resources/check-layout.js"></script>
15 <body onload="checkLayout('.flexbox')"> 15 <body onload="checkLayout('.flexbox')">
16 16
17 <div class="flexbox column" data-expected-height=0> 17 <div class="flexbox column" data-expected-height=0>
18 <div class="flexitem" data-expected-height=0 style="-webkit-flex: 100px"></d iv> 18 <div class="flexitem" data-expected-height=0 style="flex: 100px"></div>
19 </div> 19 </div>
20 20
21 <div class="flexbox column" data-expected-height=0> 21 <div class="flexbox column" data-expected-height=0>
22 <div class="flexitem2" data-expected-height=0 style="-webkit-flex: 100px"></ div> 22 <div class="flexitem2" data-expected-height=0 style="flex: 100px"></div>
23 </div> 23 </div>
24 24
25 <script> 25 <script>
26 document.querySelector('.flexitem').offsetHeight; 26 document.querySelector('.flexitem').offsetHeight;
27 document.querySelector('.flexitem2').offsetHeight; 27 document.querySelector('.flexitem2').offsetHeight;
28 document.querySelector('.flexitem').style.webkitFlex = "1"; 28 document.querySelector('.flexitem').style.flex = "1";
29 document.querySelector('.flexitem2').style.webkitFlex = "1 auto"; 29 document.querySelector('.flexitem2').style.flex = "1 auto";
30 </script> 30 </script>
31 31
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698