MDN will be in maintenance mode on Thursday September 21st, starting at 10 AM Pacific / 5 PM UTC, for about 1 hour.


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.


Requires Gecko 56(Firefox 56 / Thunderbird 56 / SeaMonkey 2.53)

The -moz-windows-accent-color-in-titlebar Gecko-only CSS @media media feature can be used to apply styles based on whether accent colors are enabled in Microsoft Windows titlebars.


In recent Windows versions (e.g., 10), if accent colors are enabled in window titlebars, this is 1. Otherwise it's 0.

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;

See also

  • This feature is closely related to the Mozilla-specific <color> values -moz-win-accentcolor and -moz-win-accentcolortext, which allow you to access the Windows accent and overlaid text accent colors from CSS.

Document Tags and Contributors

 Contributors to this page: mfluehr
 Last updated by: mfluehr,