Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/WebKit/LayoutTests/svg/css/css-keyword-properties.html

Issue 2131483003: Allow 'alphabetic' for alignment-baseline and dominant-baseline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TEs Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698