Re: [csswg-drafts] [css-images] Add a way to set overlay images (#13422)

I once started to compose a proposal to mirror the various box layers established by the `background` properties in indexed `::background()` pseudo-elements, but I think I got confused when trying to incorporate [`::backdrop`](https://drafts.csswg.org/css-position-4/#backdrop) – so I never finished the draft. 
Along the way, I had realized that when starting with the content layer at index `0` it could be useful to just make the index signed, i.e. have foreground layers as well. The name of the pseudo-element would need to become more generic then, e.g. `::layer()` or `::level()`, of course. Images would be in `content`, colors in `fill`.

Like I said, that idea never went anywhere, but perhaps it is indeed better than introducing a bunch of new properties for overlay/foreground images.

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


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

Received on Saturday, 31 January 2026 13:07:54 UTC