Re: [csswg-drafts] [css-ui-4][css-images-4][scroll-animations-1] Unify selector functions/values (#5811)

Building further upon what @SebastianZ suggested: if `selector()` would indeed behave more like `document.querySelector`, adding support for [`&` (as borrowed from css-nesting)]( would also allow to refer to “self” _(and more)_

This would come in very handy for scroll-linked animations, where you now have to duplicate timelines _(see #5884)_

Above that, the whole idea for being more like `document.querySelector` would:
- feel familiar to CSS developers as they already know the possibilities of using selectors
- not introduce any new keywords such as `self` into specs: “use `selector(&)` instead”

GitHub Notification of comment by bramus
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Wednesday, 14 July 2021 11:53:48 UTC