OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>flexbox | computed style | min-height: auto</title> | 2 <title>flexbox | computed style | min-height: auto</title> |
3 <link rel="author" href="http://opera.com" title="Opera Software"> | 3 <link rel="author" href="http://opera.com" title="Opera Software"> |
4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto"> | 4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto"> |
5 <link rel="match" href="ref-pass-body.html"> | 5 <script src="../../../../resources/testharness.js"></script> |
| 6 <script src="../../../../resources/testharnessreport.js"></script> |
6 <meta name="flags" content="dom"> | 7 <meta name="flags" content="dom"> |
7 <style> | 8 <style> |
8 html { | 9 html { |
9 display: flex; | 10 display: flex; |
10 flex-direction: column; | 11 flex-direction: column; |
11 } | 12 } |
12 body { | 13 body { |
13 color: red; | 14 color: red; |
14 min-height: auto; | 15 min-height: auto; |
15 } | 16 } |
16 .PASS {color: black;} | |
17 </style> | 17 </style> |
18 <h1>FAIL, enable javascript</h1> | 18 <div id="log"></div> |
19 <script> | 19 <script> |
| 20 test(function() { |
20 var body = document.body; | 21 var body = document.body; |
21 | 22 |
22 var passed = | 23 assert_equals(getComputedStyle(body).getPropertyValue("min-height"), |
23 » getComputedStyle(body).getPropertyValue("min-height") == | 24 » "auto"); |
24 » "auto"; | 25 }); |
25 body.textContent = body.className = passed ? "PASS" : "FAIL"; | |
26 </script> | 26 </script> |
OLD | NEW |