From 595d08fc203cff57ff15221e9286c3d8ad8fc5f2 Mon Sep 17 00:00:00 2001 From: Daniel Puckowski Date: Sat, 7 Dec 2024 13:43:10 -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 | 6 ++++++ 2 files changed, 11 insertions(+) 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 ede8d0551..b2bcffc68 100644 --- a/packages/test-data/less/_main/custom-property.less +++ b/packages/test-data/less/_main/custom-property.less @@ -27,3 +27,9 @@ --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); +}