-
-
Notifications
You must be signed in to change notification settings 8000 - Fork 1.7k
Using @container query logs error #3597
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
Comments
Looks like this is implemented by |
I don't think this is implemented by cssom? We switched to rrweb-cssom because cssom was not maintained. |
And sorry for wrong title (fixed now), it just reports error on virtual console and classic workaround of providing custom virtual console (possibly silent) helps with at least ignoring this error:
|
There is the same error log when using const { JSDOM } = require('jsdom');
new JSDOM(`
<style>
@layer {
.card h2 {
font-size: 2em;
}
}
</style>
`); |
Hi everyone, We are also facing the same problem when having The last version (0.5.0) is now two yeard old and maybe it's time to move on. |
any known workaround for jest jsdom? I'm facing the issue with primeng and |
Same for me. Unable to test primeng properly. |
Any update or workaround about that? I've been stuck in a old primevue version because of that |
I made a fork where I added support for |
in the meantime @domenic and @seanparmelee switched from cssom 0.5.0 to rrweb-cssom 0.6.0 in #3497 so I moved the lets hope for the best |
It has already been merged. Now to hope for a new version being released someday. |
Hi jsdom team, v0.7.0 has been published! |
thanks @YunFeng0817 I created a pr to bump the version: |
finally the pipeline is green 🎉 |
I'll close this since I guess people are happy we no longer throw errors about container queries. But we don't actually implement them correctly, so, I'll open a new issue tracking that, and add a test confirming that our implementation just ignores them. In the future, people who want to ignore CSS and just get no errors should pay attention to #2005. |
Basic info:
Minimal reproduction case
The container query is taken from MDN documentation in this feature, so it should be correct (?)
Sorry if there is duplicate already, but brief search was unsuccessfull.
How does similar code behave in browsers?
Works as expected - container query has effect on style applied to elements.
The text was updated successfully, but these errors were encountered: