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

> The Images instance shouldn't be merged with the others - it's defining an `<image>`, not just acting as a generic element reference.

And yet it is the one that is using the most generic name with the `element()` function. 😄 Though I get your point that this is somewhat special as it does two things, selecting an element and generating an image from it.

And because it's combining two functionalities in one, I'd suggest to rather split them up. With that I mean allowing `selector()` within [`<image-src>`](https://drafts.csswg.org/css-images-4/#typedef-image-src). With that change, the image would be generated using the `image()` function, so to generate an image from an element one would then write something like `image(selector(#my-image))`.

Sebastian

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


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

Received on Monday, 5 April 2021 19:19:49 UTC