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

Nested media queries #104

Closed
dyatko opened this issue Nov 12, 2019 · 3 comments
Closed

Nested media queries #104

dyatko opened this issue Nov 12, 2019 · 3 comments

Comments

@dyatko
Copy link

dyatko commented Nov 12, 2019

I'm running tests using latest jest and jsdom fails due to "Could not parse CSS stylesheet"

jest: 24.9.0
jsdom: 15.2.1
cssom: 0.4.2

The issue is with inherited media queries which work perfectly in Chrome.

@media (min-width: 768px) {
  h1 {
    color: red;
  }

  @media (min-resolution: 0.001dpcm) {
    h1 {
      color: yellow;
    }

    @supports (-webkit-appearance: none) {
      h1 {
        color: green;
      }
    }
  }
}

@media (min-resolution: 0.001dpcm) {
  a {
    color: green;
  }
}

@supports (-webkit-appearance: none) {
  p {
    color: blue;
  }
}
<h1>Hello!</h1>
<p>
  Inherited media queries <a href="#">here</a>.
</p>
@dyatko dyatko changed the title Inherited media queries Nested media queries Nov 12, 2019
@dyatko
Copy link
Author

dyatko commented Nov 12, 2019

Might be related to #103

@dyatko
Copy link
Author

dyatko commented Nov 12, 2019

And also #1 (comment)

@NV
Copy link
Owner

NV commented Nov 13, 2019

I unrolled the regression. Thank you for reporting.

@NV NV closed this as completed Nov 13, 2019
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