| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <script src="resources/property-parsing-test.js"></script> |
| 5 <script> |
| 6 // Verifies that offset-path property and its value are properly parsed |
| 7 |
| 8 assert_valid_value("offset-path", "path('M 0 0 L 100 100 M 100 200 L 200 200 Z L
300 300 Z')"); |
| 9 assert_valid_value("offset-path", "none"); |
| 10 assert_valid_value("offset-path", "path('')", "none"); |
| 11 assert_invalid_value("offset-path", "path('M 20 30 A 60 70 80')"); |
| 12 |
| 13 assert_valid_value("offset-path", "ray(45deg closest-side)"); |
| 14 assert_valid_value("offset-path", "ray(sides -1turn)", "ray(-1turn sides)"); |
| 15 assert_valid_value("offset-path", "ray(400grad farthest-corner contain)"); |
| 16 assert_valid_value("offset-path", "ray(calc(180deg - 45deg) farthest-side)", "ra
y(calc(135deg) farthest-side)"); |
| 17 assert_invalid_value("offset-path", "ray(0deg)"); |
| 18 assert_invalid_value("offset-path", "ray(closest-side)"); |
| 19 assert_invalid_value("offset-path", "ray(closest-side 0deg closest-side)"); |
| 20 assert_invalid_value("offset-path", "ray(0deg closest-side 0deg)"); |
| 21 assert_invalid_value("offset-path", "ray(contain 0deg closest-side contain)"); |
| 22 </script> |
| OLD | NEW |