-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support ":host" selector #33
Comments
Hi, and thanks for the bug report!
This behavior is actually correct and specified, all browsers do the same for selectors they don’t support. You can for example try If you want WeasyPrint to support CSS Scoping (that defines |
Thanks for the information! I didn't know this is well defined behaviour, sorry for the noise. This can be closed then. The background for this issue is that a css genarator (tailwindcss v4) is generating css with |
Thanks a lot for sharing this information. |
The following css works:
But once a
:host
is added it breaks:--some-variable
is not available anymore.Same goes for selectors like
html, :host
etc..I think it should simply ignore
:host
(which has no meaning here because there is no shadow dom afaik) but apply the remaining ones (:root
andhtml
in my example).The text was updated successfully, but these errors were encountered: