Re: [csswg-drafts] [scroll-animations-1] CSS @scroll-timeline: Allow `<element-offset>` selector() to point to self (#5884)

Idea: what if `selector()` acted more like `document.querySelector`, with support for [`&` as borrowed from css-nesting](https://drafts.csswg.org/css-nesting/#nest-selector)?

That would:
- be in line with other specs/syntaxes, not introducing any new keywords such as `self`
- extend its current capabilities from only IDs to anything you want
- be familiar to CSS developers as they already know the possibilities

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


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

Received on Wednesday, 23 June 2021 19:58:19 UTC