Re: [csswg-drafts] [css-cascade-6] A way for <style> elements to scope to their parent element (#6606)

Regarding the backwards compatibility issue, would it be possible to define a CSS selector that refers to the current location of a style tag?  If the browser does not recognize it, the CSS selector would match nothing, rather than everything.  

That way we could have:
```
<some-parent>
  <style>
    @here button {some css}
  </style>
  <button>CSS APPLIES HERE</button>
</some-parent>
```

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


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

Received on Monday, 1 November 2021 08:28:02 UTC