OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>CSS keywords for SVG properties</title> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script src="../../css-parser/resources/property-parsing-test.js"></script> |
| 6 <script> |
| 7 function assert_valid_keywords(property, keywords) { |
| 8 for (var keyword of keywords) |
| 9 assert_valid_value(property, keyword); |
| 10 } |
| 11 |
| 12 // alignment-baseline: auto | baseline | before-edge | text-before-edge | middle
| |
| 13 // central | after-edge | text-after-edge | ideographic | al
phabetic | |
| 14 // hanging | mathematical |
| 15 assert_valid_keywords('alignmentBaseline', [ |
| 16 'auto', 'baseline', 'before-edge', 'text-before-edge', 'middle', |
| 17 'central', 'after-edge', 'text-after-edge', 'ideographic', 'alphabetic', |
| 18 'hanging', 'mathematical' |
| 19 ]); |
| 20 |
| 21 // dominant-baseline: auto | use-script | no-change | reset-size | ideographic | |
| 22 // alphabetic | hanging | mathematical | central | middle | |
| 23 // text-after-edge | text-before-edge |
| 24 assert_valid_keywords('dominantBaseline', [ |
| 25 'auto', 'use-script', 'no-change', 'reset-size', 'ideographic', |
| 26 'alphabetic', 'hanging', 'mathematical', 'central', 'middle', |
| 27 'text-after-edge', 'text-before-edge' |
| 28 ]); |
| 29 </script> |
OLD | NEW |