This website works better with JavaScript.
欢迎来到马士兵代码仓库
Sign In
msb-public
/
svelte
mirror of
https://github.com/sveltejs/svelte
Watch
1
Star
0
Code
Issues
Projects
Releases
Wiki
Activity
eb37f4a285
svelte
/
test
/
css
/
samples
/
css-vars
/
expected.css
1 line
87 B
Raw
Normal View
History
Unescape
Escape
[fix] do not collapse whitespace-only css vars (#7303) Fixes #7152, see also #7288 --foo:; used to be an invalid CSS custom property value, while -foo: ; was valid. By collapsing the whitespace in these declaration values, we were breaking scenarios where an empty custom property was desired. The spec was updated to trim whitespace and treat these values identically, but Chromium browsers still treat --foo; as invalid. This was recently fixed and will be released in Chrome 99, but this would still be a good fix to maintain backwards compatibility.
3 years ago
:
root
{
--root-test
:
20
}
div
.
svelte-xyz
{
--test
:
10
}
div
.
svelte-xyz
{
--foo
:
;
--bar
:
!important
}