| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>CSS Box Alignment: place-content shorthand - invalid values</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 place-content's invalid values are prope
rly detected at parsing time." /> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 <script src="../resources/alignment-parsing-utils.js"></script> |
| 9 <div id="log"></div> |
| 10 <script> |
| 11 function checkInvalidValues(value) |
| 12 { |
| 13 checkPlaceShorthandInvalidValues("place-content", "align-content", "justi
fy-content", value); |
| 14 } |
| 15 |
| 16 test(function() { |
| 17 checkInvalidValues("center safe") |
| 18 checkInvalidValues("true center") |
| 19 }, "Verify overflow keywords are invalid"); |
| 20 |
| 21 test(function() { |
| 22 checkInvalidValues("center space-between start") |
| 23 }, "Verify fallback values are invalid"); |
| 24 |
| 25 test(function() { |
| 26 checkInvalidValues("10px left") |
| 27 checkInvalidValues("right 10%") |
| 28 }, "Verify numeric values are invalid"); |
| 29 |
| 30 test(function() { |
| 31 checkInvalidValues("auto") |
| 32 checkInvalidValues("auto right") |
| 33 checkInvalidValues("auto auto") |
| 34 checkInvalidValues("left auto") |
| 35 }, "Verify 'auto' values are invalid"); |
| 36 |
| 37 test(function() { |
| 38 checkInvalidValues("") |
| 39 }, "Verify empty declaration is invalid"); |
| 40 </script> |
| OLD | NEW |