place-self-shorthand-001.html (1041B)
1 <!DOCTYPE html> 2 <title>CSS Box Alignment: place-self shorthand - single values specified</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 setting a single value to place-self expands to such value set in both 'align-self' and 'justify-self'." /> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src="/css/css-align/resources/alignment-parsing-utils.js"></script> 9 <div id="log"></div> 10 <script> 11 let classes = Object.assign({"Auto":"auto", "Normal":"normal", "Stretch":"stretch"}, selfPositionClasses, 12 baselineClasses, overflowClasses); 13 for (var key in classes) { 14 let value = classes[key]; 15 test(function() { 16 checkPlaceShorhandLonghands("place-self", "align-self", "justify-self", value); 17 }, "Checking place-self: " + value); 18 } 19 </script>