Re: [csswg-drafts] [css-values] Proposal: new `presentational` global value to revert a property to use presentational hints if any, otherwise behave like `revert` (#13213)

Oh, sorry for the way I wrote it, but it is not hypothetical at all. It's a very real problem I've encountered when using [Privy's React library](https://docs.privy.io/basics/react/): their login dialog is fully styled, but my project has some opinionated CSS resets that mess with their styles (notably `position: relative`, `min-width: 0` and `min-height: 0`). So the way I fix it now is with this:
```css
  #privy-dialog {
    &,
    &::after,
    &::before,
    &::backdrop,
    &::file-selector-button,
    *,
    *::after,
    *::before,
    *::backdrop,
    *::file-selector-button {
      position: revert;
      min-width: revert;
      min-height: revert;
    }
  }
```
But I can do that because I know which properties to reset in my project. If Privy wanted to "fix" their library to prevent stuff like this from happening, they would want to use `all: revert`, which does break all the SVG icons in the dialog.

-- 
GitHub Notification of comment by benface
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13213#issuecomment-3656323128 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 15 December 2025 15:41:08 UTC