summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-variables/wide-keyword-fallback-002.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-variables/wide-keyword-fallback-002.html')
-rw-r--r--testing/web-platform/tests/css/css-variables/wide-keyword-fallback-002.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-variables/wide-keyword-fallback-002.html b/testing/web-platform/tests/css/css-variables/wide-keyword-fallback-002.html
new file mode 100644
index 0000000000..315468a75e
--- /dev/null
+++ b/testing/web-platform/tests/css/css-variables/wide-keyword-fallback-002.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<title>CSS Test: Wide keyword can be used as a fallback variable value for custom properties themselves</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<link rel="help" href="https://drafts.csswg.org/css-variables/#substitute-a-var">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1544886">
+<link rel="match" href="wide-keyword-fallback-002-ref.html">
+<style>
+ .outer1 {
+ --color: green;
+ }
+ .outer2 {
+ --color: var(--foo, unset);
+ }
+ .inner {
+ color: var(--color);
+ }
+</style>
+<div class="outer1">
+ <div class="outer2">
+ <div class="inner">
+ Should be green
+ </div>
+ </div>
+</div>