<p>This is a test.</p>`color-index` CSS media feature / notebook
`color-index` CSS media feature
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
p {
color: black;
}
@media (color-index) {
p {
color: red;
}
}
@media (min-color-index: 15000) {
p {
color: #1475ef;
}
}<link rel="stylesheet" href="https://cdn.example.com/base.css" />
<link
rel="stylesheet"
media="(color-index >= 256)"
href="https://cdn.example.com/color-stylesheet.css" />