Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS in @supports blocks is removed if compiling with cascade: false #1215

Closed
leereamsnyder opened this issue Mar 7, 2018 · 1 comment
Closed

Comments

@leereamsnyder
Copy link
Contributor

(Realized I never made an issue to go with #1200)

with the cascade: false option, CSS in @supports blocks is getting removed

Here's a REPL: https://svelte.technology/repl?version=1.56.2&gist=e546039fc8c9aede35b4bff161016682

<div class='maybe-grid'>something with a nice layout</div>

<style>
  @supports (display: grid) {
    .maybe-grid {
      display: grid;
    }
  }
</style>

You would expect to get the code within the block e.g.

@supports (display: grid) {.maybe-grid[svelte-xyz]{display:grid}}

but you currently get

@supports (display: grid) {}

I have an attempt at a fix in #1200 . I made the probably naive assumption that @supports blocks should be treated in a similar fashion to @media

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants