The problem I’m trying to solve is adding a text backplate (a background color) to elements that have text while not applying it unnecessarily to elements without text. Doing this would ensure a sufficient text contrast for elements that overlay images.
I’d love to be able to write
:text {
background-color: var(--backplate-color);
}