| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>CSS Box Alignment: place-self 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-self-property" /> |
| 5 <meta name="assert" content="Check that place-self's invalid values are properly
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-self", "align-self", "justify-se
lf", 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("") |
| 32 }, "Verify empty declaration is invalid"); |
| 33 </script> |
| OLD | NEW |