- From: Benoît Rouleau via GitHub <noreply@w3.org>
- Date: Sun, 25 Jan 2026 17:42:15 +0000
- To: public-css-archive@w3.org
> You could import their styles in a layer (e.g. `@import "privy.css" layer(privy)`), that is why I ask. I don't think so. As far as I know, they don't expose their stylesheet directly; I believe they inject it automatically when their dialog component is imported or rendered. But even if it was possible, I'm not sure I understand how it would help? > So the issue is more that your reset sets a bunch of property values and that privy has subtle dependencies on **default** values for some of those properties. > > For example the default value for `position` is `static` and maybe that is what privy expects. But your reset sets everything to `position: relative;` > > Correct? Exactly. 💯 > Isn't this a good use case for `@scope`? Yes! The `@scope (html) to (#privy-dialog)` solution you proposed makes sense from the consumer's point of view, but this issue is about what a component library can do to prevent issues like that in the first place, so consumers don't have to do anything. I believe a more complete / foolproof solution from a library's point of view would _also_ use `@scope` though, [as I wrote in #11002](https://github.com/w3c/csswg-drafts/issues/11002#issuecomment-3795639646). -- GitHub Notification of comment by benface Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13213#issuecomment-3797003744 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 25 January 2026 17:42:16 UTC