Chromium Code Reviews| 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)"); | |
|
fs
2017/05/15 09:18:14
Maybe add a test with calc(...) for the <angle>.
Eric Willigers
2017/05/15 10:52:23
Done.
| |
| 16 assert_invalid_value("offset-path", "ray(0deg)"); | |
| 17 assert_invalid_value("offset-path", "ray(closest-side)"); | |
| 18 assert_invalid_value("offset-path", "ray(closest-side 0deg closest-side)"); | |
| 19 assert_invalid_value("offset-path", "ray(0deg closest-side 0deg)"); | |
| 20 assert_invalid_value("offset-path", "ray(contain 0deg closest-side contain)"); | |
| 21 </script> | |
| OLD | NEW |