Closed dyatko closed 4 years ago
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>
Might be related to #103
And also https://github.com/NV/CSSOM/issues/1#issuecomment-55845103
I unrolled the regression. Thank you for reporting.
I'm running tests using latest jest and jsdom fails due to "Could not parse CSS stylesheet"
The issue is with inherited media queries which work perfectly in Chrome.