Re: [css-houdini-drafts] [css-paint-api] Support for using paint() in element overlays (#982)

I like the idea, especially in regard of avoiding additional DOM just used for creating those overlays.

The main point here doesn't seem to be the `paint()` function itself but actually a property for a foreground layer that is painted as top layer above all others. That property would take a [`<image>` value](https://drafts.csswg.org/css-images-3/#image-values) (or even a list of them like the [`background-image` property](https://drafts.csswg.org/css-backgrounds-3/#background-image)). With that, support for `paint()` comes for free.

Such a property would also cover other use cases like e.g. gradient overlays fading the contents of an element out (as seen in browser tabs, for example), or overlaying contents by images.

Sebastian

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

Received on Wednesday, 8 April 2020 23:33:23 UTC