| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>CSS Box Alignment: place-items 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/#place-items-property" /> |
| 5 <meta name="assert" content="Check that place-items's invalid values are properl
y 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-items", "align-items", "justify-i
tems", 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 }, "Verify 'auto' value is invalid as first longhand value."); |
| 35 |
| 36 test(function() { |
| 37 checkInvalidValues("") |
| 38 }, "Verify empty declaration is invalid"); |
| 39 </script> |
| OLD | NEW |