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 5ed7bfc commit 0b04bcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
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);
}
7 changes: 6 additions & 1 deletion packages/test-data/less/_main/custom-property.less
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 0b04bcd

Please sign in to comment.