Skip to content

Commit

Permalink
chore: add more CSS custom property tests
Browse files Browse the repository at this point in the history
* Add more CSS custom property tests.
  • Loading branch information
puckowski committed Dec 7, 2024
1 parent d0225a1 commit 595d08f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/test-data/css/_main/custom-property.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
6 changes: 6 additions & 0 deletions packages/test-data/less/_main/custom-property.less
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 595d08f

Please # to comment.