coderef

color-adjustLimited availability

The color-adjust shorthand CSS property allows multiple performance related color adjustments to be set at once. Setting the print-color-adjust CSS property directly is preferred, as it is the only such adjustment so far defined.

Not yet supported in all major browsers — check the table and provide a fallback.

Discouraged: The CSS Color Adjustment specification described the color-adjust as deprecated, to prevent authors from accidentally resetting color adjustments in unexpected contexts. Use instead: print-color-adjust

Browser support

DesktopChrome
✕Not supportedup to 155
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
1–47Not supported
48+Supportedsince Aug 2, 2016
Current: 157
Safari
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27
MobileChrome Android
✕Not supportedup to 155
Current: 155
Firefox Android
4–47Not supported
48+Supportedsince Aug 2, 2016
Current: 157
Safari iOS
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27

How to use

Not supported in Chrome, Edge, Chrome Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

CSS · check before using
@supports (color-adjust: initial) {
  /* styles that rely on color-adjust */
}

/* or in JavaScript */
if (CSS.supports("color-adjust", "initial")) {
  // use it
}