HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

forced-color-adjust

Description

The forced-color-adjust property for CSS allows authors to opt particular elements out of forced colors mode, restoring full control over the colors to CSS.

Windows

  1. Open Settings
  2. Click Ease of Access
  3. Click High contrast
  4. Under Turn on high contrast, select On

Syntax

CSS

forced-color-adjust: value;

JS

object.style.forcedColorAdjust = "value";

Values

<'forced-color-adjust'> = auto | none | preserve-parent-color
auto

Automatically specified by the user agent.

none

Not automatically specified by the user agent.

preserve-parent-color

If the color property inherits from its parent, then it computes to the used color of its parent’s color value. In all other respects, it behaves the same as none.

Initial

auto

Examples

1 · auto

2 · none

3 · preserve-parent-color

4 · JS