Re: [csswg-drafts] [css-selectors] Proposal: Selector Boundary (#5057)

> * Scoped styles will not prevent outside styles from leaking into the scope, while not allowing outside styles to override defined styles within the scope

Correct me if I'm wrong, but couldn't you achieve almost the same effect with something like this?

```css
@scope ([boundary="my-element"]) {
  * { all: initial }
  /* scope-specific styles go here */
}
```

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


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

Received on Tuesday, 25 January 2022 10:42:45 UTC