You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Svelte does not fully support the Range Syntax added in Media Queries Level 4.
However, this is already supported by many browsers. https://caniuse.com/css-media-range-syntax
In addition, css-syntax-error behavior is not consistent between @container and @media.
@media
Ranged syntax cannot be used because of svelte(css-syntax-error) or ESLint errors.
@container
No error occurs and Ranged Syntax can be used.
But this is probably not the proper behavior.
I don't think svelte(css-syntax-error) is working for @container.
Please comment out each @media and @contaner here to confirm.
Logs
# `@media`## Browser
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
## Server
Internal server error: /src/routes/+page.svelte:19:15 Colon is expected
Plugin: vite-plugin-svelte
File: /src/routes/+page.svelte:19:15
17 | }
18 |
19 | @media (width <= 400px) {
^
20 | h1 {
21 | color: blue; (x4)
# `@container`
not error
The text was updated successfully, but these errors were encountered:
taichi221228
changed the title
Unify @media and @container behavior and support Range Syntax
Unify @media and @container behavior and support Range Syntax
Apr 25, 2023
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Currently Svelte does not fully support the Range Syntax added in Media Queries Level 4.
However, this is already supported by many browsers.
https://caniuse.com/css-media-range-syntax
In addition, css-syntax-error behavior is not consistent between
@container
and@media
.@media
Ranged syntax cannot be used because of
svelte(css-syntax-error)
or ESLint errors.@container
No error occurs and Ranged Syntax can be used.
But this is probably not the proper behavior.
I don't think
svelte(css-syntax-error)
is working for@container
.Reproduction
https://svelte.dev/repl/f93c20e016614f098b426a3e195ee9ad?version=3.58.0
Please comment out each
@media
and@contaner
here to confirm.Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: