Re: [csswg-drafts] [css-cascade-6] Is it possible to create a scoping boundary over sibling elements? (#7233)

```css
h1 ~~ p {
 color: red;
}

h2 ~~ p {
 color: green;
}

h3 ~~ p {
 color: blue;
}
```

@mirisuzanne I really like this and I agree that only a proximity-weighted sibling combinator is needed to resolve my issue.

Thank you for your insights.

> In order to define sibling-based 'scopes', we would need a more major shift to the syntax.

Definitely want to avoid that :)

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


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

Received on Tuesday, 24 May 2022 16:23:34 UTC