place-content-shorthand-002.html (1390B)
1 <!DOCTYPE html> 2 <title>CSS Box Alignment: place-content shorthand - multiple 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/#propdef-place-content" /> 5 <meta name="assert" content="Check that setting two values to place-content sets the first one to 'align-content' and the second one to 'justify-content'." /> 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({"Normal":"normal"}, contentPositionClasses, distributionClasses, baselineClasses, 12 overflowClasses); 13 for (var key1 in classes) { 14 let alignValue = classes[key1]; 15 let classes2 = Object.assign({"Normal":"normal", "Left":"left", "Right":"right"}, contentPositionClasses, 16 distributionClasses); 17 for (var key2 in classes2) { 18 let justifyValue = classes2[key2]; 19 test(function() { 20 checkPlaceShorhandLonghands("place-content", "align-content", "justify-content", alignValue, justifyValue); 21 }, "Checking place-content: " + alignValue + " " + justifyValue); 22 } 23 } 24 </script>