-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Description
When placing a calc inside of a media query you get a compiler error.
To Reproduce
This repl contains an example of the bug.
https://svelte.dev/repl/d3b8fb7d74d540b69b990f34105b9b22?version=3.31.2
This results in compiler error.
@media screen and (min-width: calc(100px - 10px)) { h1 { color: green; } }
Intended behavior
This works with normal css so it should produce valid css instead of throwing an error
System:
OS: Windows 10 10.0.18363
CPU: (16) x64 AMD Ryzen 7 2700X Eight-Core Processor
Memory: 7.15 GB / 15.94 GB
Binaries:
Node: 14.8.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.4 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.7 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 87.0.4280.141
Edge: Spartan (44.18362.449.0)
Internet Explorer: 11.0.18362.1
npmPackages:
rollup: ^2.3.4 => 2.36.1
svelte: ^3.31.2 => 3.31.2