From e76118ea080646cff4ed3017a9423ca299806e05 Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 15 Jan 2025 23:43:45 +0100 Subject: cascade: basic CSS variable support and once again, there was light... Well, it barely works, but it's enough to get colors back on most sites. Nested variables aren't supported for now, and shorthand expansion only "works" for `background' (it's a hack). Props to the W3C for introducing the C preprocessor to CSS - I was starting to confuse it with JSSS after calc(). --- test/layout/variables.color.expected | 2 ++ test/layout/variables.html | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 test/layout/variables.color.expected create mode 100644 test/layout/variables.html (limited to 'test') diff --git a/test/layout/variables.color.expected b/test/layout/variables.color.expected new file mode 100644 index 00000000..59986144 --- /dev/null +++ b/test/layout/variables.color.expected @@ -0,0 +1,2 @@ +purple  + diff --git a/test/layout/variables.html b/test/layout/variables.html new file mode 100644 index 00000000..cd6d3696 --- /dev/null +++ b/test/layout/variables.html @@ -0,0 +1,7 @@ + + +
purple
+
-- cgit