Skip to content

Commit 6e537c1

Browse files
committed
[css-color-adjust-1] Per WG resolution, rename 'color-adjust' to 'print-color-adjust'; re-add 'color-adjust' as alias (shorthand). w3c#3880
1 parent 31464a8 commit 6e537c1

1 file changed

Lines changed: 34 additions & 11 deletions

File tree

css-color-adjust-1/Overview.bs

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Introduction {#intro}
3939
and the 'forced-color-adjust' property,
4040
which controls whether or not [=forced colors mode=] is allowed to apply to a given element.
4141

42-
* The 'color-adjust' property,
42+
* The 'print-color-adjust' property,
4343
which controls whether the browser is allowed
4444
to automatically adjust colors to the user's assumed performance preferences,
4545
such as suppressing background colors when printing to save ink.
@@ -533,8 +533,6 @@ Opting Out of a Forced Color Scheme: the 'forced-color-adjust' property {#forced
533533
for those elements.
534534
</dl>
535535

536-
ISSUE: Should this property be merged with 'color-adjust' somehow?
537-
538536
In order to not break SVG content,
539537
UAs are expected to add the following rules to their UA style sheet:
540538

@@ -554,7 +552,7 @@ Opting Out of a Forced Color Scheme: the 'forced-color-adjust' property {#forced
554552
██████ ███████ ████████ ███████ ██ ██ ██ ██ ████████ ██████ ███████ ██████ ██
555553
-->
556554

557-
Performance-based Color Adjustments: the 'color-adjust' property {#perf}
555+
Performance-based Color Adjustments {#perf}
558556
===================================
559557

560558
On most monitors,
@@ -582,10 +580,13 @@ Performance-based Color Adjustments: the 'color-adjust' property {#perf}
582580
and to accommodate what they assume the user would prefer.
583581
However, in some cases the document may be using colors in important, well-thought-out ways that the user would appreciate,
584582
and so the document would like some way to hint to the user agent that it might want to respect the page's color choices.
585-
The 'color-adjust' property controls this.
583+
This section defines properties for controlling these automatic adjustments.
584+
585+
Ink Economy: the 'print-color-adjust' property {#print-color-adjust}
586+
----------------------------------------------
586587

587588
<pre class='propdef'>
588-
Name: color-adjust
589+
Name: print-color-adjust
589590
Value: economy | exact
590591
Initial: economy
591592
Applies to: all elements
@@ -595,15 +596,16 @@ Performance-based Color Adjustments: the 'color-adjust' property {#perf}
595596
Animation type: discrete
596597
</pre>
597598

598-
The 'color-adjust' property provides a hint to the user-agent about how it should treat color and style choices
599-
that might be expensive or generally unwise on a given device,
600-
such as using light text on a dark background in a printed document.
599+
The 'print-color-adjust' property provides a hint to the user-agent
600+
about how it should treat color and style choices
601+
that might be expensive or generally unwise on a printer or similar device,
602+
such as using light text on a dark background.
601603
If user agents allow users to control this aspect of the document's display,
602604
the user preference <strong>must</strong> be respected more strongly
603-
than the hint provided by 'color-adjust'.
605+
than the hint provided by 'print-color-adjust'.
604606
It has the following values:
605607

606-
<dl dfn-type=value dfn-for=color-adjust>
608+
<dl dfn-type=value dfn-for=print-color-adjust>
607609
<dt><dfn>economy</dfn>
608610
<dd>
609611
The user agent should make adjustments to the page's styling
@@ -629,6 +631,27 @@ Performance-based Color Adjustments: the 'color-adjust' property {#perf}
629631
when distracted in a car.
630632
</dl>
631633

634+
The 'color-adjust' Shorthand {#color-adjust}
635+
--------------------------------------------
636+
637+
<pre class="propdef shorthand">
638+
Name: color-adjust
639+
Value: <'print-color-adjust'>
640+
</pre>
641+
642+
The 'color-adjust' shorthand allows an author
643+
to set all of the performance-motivated color adjustment properties
644+
in one declaration.
645+
(Currently, there is only one such property--
646+
'print-color-adjust'--
647+
but more might be added in the future.)
648+
649+
Advisement: The 'color-adjust' shorthand is currently <em>deprecated</em>.
650+
Authors should use the more specific 'print-color-adjust' property,
651+
to avoid accidentally resetting performance-based color adjustments
652+
in other contexts than the one intended.
653+
654+
632655
Privacy and Security Considerations {#priv-sec}
633656
===================================
634657

0 commit comments

Comments
 (0)