From 94f2ed4c705d59787c7004138a28decd0ac6257a Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 28 Jan 2025 19:36:15 +0100 Subject: cascade: fix variable inheritance --- test/layout/variables.color.expected | 3 ++- test/layout/variables.html | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'test') 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); } - +:root { --pink: pink } +a { --pink0: var(--pink); --gray: gray } +#test2 { color: var(--pink0); --pink: yellow !important; background-color: var(--gray) }
purple
test + +
test2
+
-- cgit