Index: third_party/WebKit/LayoutTests/svg/css/css-keyword-properties.html |
diff --git a/third_party/WebKit/LayoutTests/svg/css/css-keyword-properties.html b/third_party/WebKit/LayoutTests/svg/css/css-keyword-properties.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6ef8f258915d17e21193cbdc877c97765afe9ea7 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/css/css-keyword-properties.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE html> |
+<title>CSS keywords for SVG properties</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script src="../../css-parser/resources/property-parsing-test.js"></script> |
+<script> |
+function assert_valid_keywords(property, keywords) { |
+ for (var keyword of keywords) |
+ assert_valid_value(property, keyword); |
+} |
+ |
+// alignment-baseline: auto | baseline | before-edge | text-before-edge | middle | |
+// central | after-edge | text-after-edge | ideographic | alphabetic | |
+// hanging | mathematical |
+assert_valid_keywords('alignmentBaseline', [ |
+ 'auto', 'baseline', 'before-edge', 'text-before-edge', 'middle', |
+ 'central', 'after-edge', 'text-after-edge', 'ideographic', 'alphabetic', |
+ 'hanging', 'mathematical' |
+]); |
+ |
+// dominant-baseline: auto | use-script | no-change | reset-size | ideographic | |
+// alphabetic | hanging | mathematical | central | middle | |
+// text-after-edge | text-before-edge |
+assert_valid_keywords('dominantBaseline', [ |
+ 'auto', 'use-script', 'no-change', 'reset-size', 'ideographic', |
+ 'alphabetic', 'hanging', 'mathematical', 'central', 'middle', |
+ 'text-after-edge', 'text-before-edge' |
+]); |
+</script> |