Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

7.0.6 broke my css #48

Closed
andreymal opened this issue Oct 18, 2018 · 1 comment
Closed

7.0.6 broke my css #48

andreymal opened this issue Oct 18, 2018 · 1 comment

Comments

@andreymal
Copy link

@custom-media --mobile-landscape (min-width: 568px) and (max-width: 767px);

.foo {
  @media (--mobile-landscape) {
    /* something */
  }
}

postcss-custom-media 7.0.5

@media (min-width: 568px) and (max-width: 767px) {
  .foo {
    /* something */
  }
}

postcss-custom-media 7.0.6

@media (min-width: 568px)(max-width: 767px) {
  .foo {
    /* something */
  }
}
@jonathantneal
Copy link
Contributor

I am super sorry about that. While fixing another bug, I introduced this in 7.0.6. I’ve added more tests specifically for this situation that would protect against this happening again. Sorry for the delay in responding — it’s been very busy at work.

I hope you enjoy the new fix that is in 7.0.7. I’ve just published it! 🎉

It’s also been updated in PostCSS Preset Env 6.1.2.

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

No branches or pull requests

2 participants