about summary refs log tree commit diff stats
path: root/test/layout/variables.html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-20 18:26:11 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-20 19:34:28 +0100
commit15444c4d13f7d2da5f68da1873b2f9b9acf2d955 (patch)
treec8c59e4fdadee2bbf988c13ebe4c48a1de8e568f /test/layout/variables.html
parent66b18695de1e6629341e08faf487a693cc26211a (diff)
downloadchawan-15444c4d13f7d2da5f68da1873b2f9b9acf2d955.tar.gz
cascade: support nested variables
...and refactor applyValue in the process.
Diffstat (limited to 'test/layout/variables.html')
-rw-r--r--test/layout/variables.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/layout/variables.html b/test/layout/variables.html
index cd6d3696..330659a9 100644
--- a/test/layout/variables.html
+++ b/test/layout/variables.html
@@ -1,7 +1,20 @@
 <style>
 a { --purple: purple; color: var(--purple) }
 div { color: white; --pink: yellow !important; background-color: var(--purple) }
+#test {
+	--test: var(--test2);
+	--test2: var(--test);
+	--test3: var(--test4);
+	--test4: red;
+	--test5: var(--test6,var(--test7));
+	--test7: var(--test6,var(--test5));
+	color: var(--test);
+	color: var(--test3);
+	background-color: var(--test5);
+}
+</style>
 </style>
 <a>
 <div>purple</div>
 </a>
+<span id=test>test</span>