summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text-decor/text-decoration-line-grammar-error-color-001.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-text-decor/text-decoration-line-grammar-error-color-001.html')
-rw-r--r--testing/web-platform/tests/css/css-text-decor/text-decoration-line-grammar-error-color-001.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text-decor/text-decoration-line-grammar-error-color-001.html b/testing/web-platform/tests/css/css-text-decor/text-decoration-line-grammar-error-color-001.html
new file mode 100644
index 0000000000..e9560bb47c
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text-decor/text-decoration-line-grammar-error-color-001.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<meta charset="utf-8" />
+<title>CSS Text Decoration Test: text-decoration-line: grammar-error color</title>
+<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
+<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#valdef-text-decoration-line-grammar-error">
+<meta name="assert" content="This test checks that it is not possible to tweak the color of 'text-decoration-line: grammar-error' with 'text-decoration-color' property.">
+<link rel="match" href="text-decoration-line-grammar-error-color-001-ref.html">
+<style>
+ span {
+ text-decoration-line: grammar-error;
+ }
+ .test {
+ text-decoration-color: rgba(200, 225, 50, 0.75);
+ }
+</style>
+
+<p>The test passes if the grammar error marker on both instances of "quikc" have the same color.
+<div>The <span class=test>quikc</span> brown fox.</div>
+<div>The <span>quikc</span> brown fox.</div>