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

Side by Side Diff: LayoutTests/css3/flexbox/auto-margins.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 <head> 3 <head>
4 <link href="resources/flexbox.css" rel="stylesheet"> 4 <link href="resources/flexbox.css" rel="stylesheet">
5 <style> 5 <style>
6 6
7 #circles, #circles div { 7 #circles, #circles div {
8 display: -webkit-flex; 8 display: flex;
9 display: -moz-flex;
10 width: -webkit-calc(100% - 4em); 9 width: -webkit-calc(100% - 4em);
11 width: calc(100% - 4em); 10 width: calc(100% - 4em);
12 height: -webkit-calc(100% - 4em); 11 height: -webkit-calc(100% - 4em);
13 height: calc(100% - 4em); 12 height: calc(100% - 4em);
14 border: 1em solid blue; 13 border: 1em solid blue;
15 border-radius:50%; 14 border-radius:50%;
16 margin: auto; 15 margin: auto;
17 } 16 }
18 17
19 #circles { width:9em; height:9em; } 18 #circles { width:9em; height:9em; }
(...skipping 20 matching lines...) Expand all
40 var okStyle = getComputedStyle(document.getElementById('ok')); 39 var okStyle = getComputedStyle(document.getElementById('ok'));
41 document.getElementById("log").innerHTML += "<br>OK: " + 40 document.getElementById("log").innerHTML += "<br>OK: " +
42 ((parseInt(okStyle.marginTop) && parseInt(okStyle.marginRight) && parseInt(o kStyle.marginBottom) && parseInt(okStyle.marginLeft)) ? "PASS" : "FAIL"); 41 ((parseInt(okStyle.marginTop) && parseInt(okStyle.marginRight) && parseInt(o kStyle.marginBottom) && parseInt(okStyle.marginLeft)) ? "PASS" : "FAIL");
43 42
44 var okVerticalStyle = getComputedStyle(document.getElementById('okVertical')); 43 var okVerticalStyle = getComputedStyle(document.getElementById('okVertical'));
45 document.getElementById("log").innerHTML += "<br>Vertical OK: " + 44 document.getElementById("log").innerHTML += "<br>Vertical OK: " +
46 ((parseInt(okVerticalStyle.marginTop) && parseInt(okVerticalStyle.marginRigh t) && parseInt(okVerticalStyle.marginBottom) && parseInt(okVerticalStyle.marginL eft)) ? "PASS" : "FAIL"); 45 ((parseInt(okVerticalStyle.marginTop) && parseInt(okVerticalStyle.marginRigh t) && parseInt(okVerticalStyle.marginBottom) && parseInt(okVerticalStyle.marginL eft)) ? "PASS" : "FAIL");
47 </script> 46 </script>
48 </body> 47 </body>
49 </html> 48 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/flexbox/auto-height-dynamic.html ('k') | LayoutTests/css3/flexbox/box-sizing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698