- From: neetij via GitHub <sysbot+gh@w3.org>
- Date: Sat, 27 May 2023 14:27:06 +0000
- To: public-css-archive@w3.org
> Is a new property a better choice than introducing some inline keyword in `background` to mean “ignore this one”? like, something that allows background to not override the color.
I like this idea of adding a keyword to reuse a previously defined value.
Keyword options: `revert-value`, `inherit-value`, `specified`.
```css
.foo {background:gray;}
.alert {background:red;}
.alert {background:inherit-value url("alert.png") no-repeat right top; /* takes color from .alert */}
.bar {background:inherit-value url("bar.png") no-repeat right top; /* no color found, so behaves like 'inherit' */}
.foo .bar {background:inherit-value url("foo-bar.png") no-repeat right top; /* takes color from .foo */}
```
If the above is not within scope...
- `background-image-stack` / `background-stack`, or
- `background-media`, which is conceptually close to `background-image` (though possibly unclear we can't use videos)
--
GitHub Notification of comment by neetij
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8726#issuecomment-1565452731 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 27 May 2023 14:27:08 UTC