| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>CSS Box Alignment: place-items shorthand - initial 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-items-property" /> |
| 5 <meta name="assert" content="Check that place-items's 'initial' value expands to
'align-items' and 'justify-items'." /> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 <div id="log"></div> |
| 9 <script> |
| 10 var div = document.createElement("div"); |
| 11 document.body.appendChild(div); |
| 12 div.style["align-items"] = "start"; |
| 13 div.style["justify-items"] = "end"; |
| 14 div.setAttribute("style", "place-items: initial"); |
| 15 |
| 16 test(function() { |
| 17 assert_equals(div.style["align-items"], |
| 18 "initial", "place-items expanded value for align-items"); |
| 19 }, "Check place-items: initial - align-items expanded value"); |
| 20 |
| 21 test(function() { |
| 22 assert_equals(div.style["justify-items"], |
| 23 "initial", "place-items expanded value for justify-items"); |
| 24 }, "Check place-items: initial - justify-items expanded value"); |
| 25 </script> |
| OLD | NEW |