CKTIS / CSS
CSS property `print-color-adjust`
The inherited `print-color-adjust` property hints whether a print renderer may save ink by changing colors (`economy`) or the element’s colors are important and should remain exact (`exact`).
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
economy | exactThe inherited print-color-adjust property hints whether a print renderer may save ink by changing colors (economy) or the element’s colors are important and should remain exact (exact).
The example sets exact on a ticket and shows that its child inherits the value, while a separate draft explicitly uses economy.
Grammar: economy | exact.
exact is a hint, not a way around user settings; the user preference wins. The root value propagates to the document viewport, but an HTML body value does not; this property neither replaces forced-color-adjust nor guarantees identical color on every device.
Examples
<!doctype html><meta charset="utf-8"><style>.ticket{print-color-adjust:exact}.draft{print-color-adjust:economy}</style><section id="ticket" class="ticket"><span id="child">important colors</span></section><section id="draft" class="draft">disposable proof</section><pre id="result"></pre><script>const a=getComputedStyle(ticket).printColorAdjust,b=getComputedStyle(child).printColorAdjust,c=getComputedStyle(draft).printColorAdjust;if(a!=='exact'||b!=='exact'||c!=='economy')throw new Error('print-color-adjust mismatch '+[a,b,c]);result.textContent='ticket='+a+'; inherited='+b+'; draft='+c;</script>Result
ticket=exact; inherited=exact; draft=economy
The example sets `exact` on a ticket and shows that its child inherits the value, while a separate draft explicitly uses `economy`.