| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>CSS Box Alignment: place-self shorthand - inherit value</title> |
| 3 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com"
/> |
| 4 <link rel="help" href="http://www.w3.org/TR/css3-align/#place-self-property" /> |
| 5 <meta name="assert" content="Check that place-self's 'inherit' value expands to
'align-self' and 'justify-self'." /> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 <style> |
| 9 #test { |
| 10 place-self: start end; |
| 11 } |
| 12 </style> |
| 13 <div id="log"></div> |
| 14 <div id="test"></div> |
| 15 <script> |
| 16 var child = document.createElement("div"); |
| 17 document.getElementById("test").appendChild(child); |
| 18 child.setAttribute("style", "place-self: inherit"); |
| 19 var style = getComputedStyle(child); |
| 20 |
| 21 test(function() { |
| 22 assert_equals(style.getPropertyValue("align-self"), |
| 23 "start", "place-self resolved value for align-self"); |
| 24 }, "Check place-self: inherit - align-self resolved value"); |
| 25 |
| 26 test(function() { |
| 27 assert_equals(style.getPropertyValue("justify-self"), |
| 28 "end", "place-self resolved value for justify-self"); |
| 29 }, "Check place-self: inherit - justify-self resolved value"); |
| 30 </script> |
| OLD | NEW |