Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Note: Since Firefox 58, this media feature is no longer available to web content — it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details.
The -moz-windows-accent-color-in-titlebar Gecko-only CSS media feature can be used to apply styles based on whether accent colors are enabled in Microsoft Windows titlebars.
<integer>Media: media/visual
Accepts min/max prefixes: no
@media (-moz-windows-accent-color-in-titlebar: 1) {
h1 {
color: -moz-win-accentcolortext;
}
body {
background-color: -moz-win-accentcolor;
}
} <color> values -moz-win-accentcolor and -moz-win-accentcolortext, which allow you to access the Windows accent and overlaid text accent colors from CSS.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/-moz-windows-accent-color-in-titlebar