From 0b04bcd928ee83f3e7c36a3b40473b38d0cee967 Mon Sep 17 00:00:00 2001 From: Daniel Puckowski Date: Sat, 7 Dec 2024 13:35:35 -0500 Subject: [PATCH] chore: add more CSS custom property tests * Add more CSS custom property tests. --- packages/test-data/css/_main/custom-property.css | 5 +++++ packages/test-data/less/_main/custom-property.less | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/test-data/css/_main/custom-property.css b/packages/test-data/css/_main/custom-property.css index ad430c143..b02be5a16 100644 --- a/packages/test-data/css/_main/custom-property.css +++ b/packages/test-data/css/_main/custom-property.css @@ -22,3 +22,8 @@ --some-var: 5px; prop: min(100% - var(--some-var, var(--somevar, 0)), 10px); } +.test7 { + --some-var: 6px; + --some-var-2: 7px; + prop: min(100% - var(--some-var, var(--somevar, var(--some-var-2, 8px))), 10px); +} diff --git a/packages/test-data/less/_main/custom-property.less b/packages/test-data/less/_main/custom-property.less index b50bfcb58..b2bcffc68 100644 --- a/packages/test-data/less/_main/custom-property.less +++ b/packages/test-data/less/_main/custom-property.less @@ -23,8 +23,13 @@ prop: pow(var(--font-ratio-min), var(--font-level, 0)) } - .test6 { --some-var: 5px; prop: min(100% - var(--some-var, var(--somevar, 0)), 10px); } + +.test7 { + --some-var: 6px; + --some-var-2: 7px; + prop: min(100% - var(--some-var, var(--somevar, var(--some-var-2, 8px))), 10px); +}