aboutsummaryrefslogtreecommitdiffstats
path: root/test/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-28 19:36:15 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-28 19:36:15 +0100
commit94f2ed4c705d59787c7004138a28decd0ac6257a (patch)
treebebdc60db1e411aae47aa20aafb3f27f5470dba9 /test/layout
parent59601e40572c58cbc4d4be0c300756cd863da339 (diff)
downloadchawan-94f2ed4c705d59787c7004138a28decd0ac6257a.tar.gz
cascade: fix variable inheritance
Diffstat (limited to 'test/layout')
-rw-r--r--test/layout/variables.color.expected3
-rw-r--r--test/layout/variables.html7
2 files changed, 8 insertions, 2 deletions
diff --git a/test/layout/variables.color.expected b/test/layout/variables.color.expected
index 97914b94..337c2e09 100644
--- a/test/layout/variables.color.expected
+++ b/test/layout/variables.color.expected
@@ -1,2 +1,3 @@
purple 
-test
+test
+test2 
diff --git a/test/layout/variables.html b/test/layout/variables.html
index 330659a9..4cacb098 100644
--- a/test/layout/variables.html
+++ b/test/layout/variables.html
@@ -12,9 +12,14 @@ div { color: white; --pink: yellow !important; background-color: var(--purple) }
color: var(--test3);
background-color: var(--test5);
}
-</style>
+:root { --pink: pink }
+a { --pink0: var(--pink); --gray: gray }
+#test2 { color: var(--pink0); --pink: yellow !important; background-color: var(--gray) }
</style>
<a>
<div>purple</div>
</a>
<span id=test>test</span>
+<a>
+<div id=test2>test2</div>
+</a>