property

print-color-adjust — CSS reference

Hints whether the browser may alter colors for economy or should try to preserve authored colors when printing or similar output. The initial value is economy and the property inherits. User preferences and UA decisions can override the hint. Never rely on backgrounds being printed to convey essential content.

Formal Syntax & Structure

css syntaxcss
economy | exact

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS accessible theme lab</title><style>body {margin:0} .sample {height:12px;background:#006050}section{print-color-adjust:exact;background:#eee} p{print-color-adjust:economy}</style><body><section id="a">Invoice summary <span id="b">Paid</span><p id="c">Total: 20</p></section></body></html>
CSS Reference