Skip to content

Commit 0ff2ff0

Browse files
committed
[css-color-5] Reword resolving (second attempt) for w3c#7302
1 parent d86a61d commit 0ff2ff0

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

css-color-5/Overview.bs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,16 +2376,14 @@ or any other color or monochrome output device which has been characterized.
23762376

23772377
<h3 id="resolving-contrast">Resolving ''color-contrast()'' values</h3>
23782378

2379-
The specified value is the ''color-contrast()'' function
2380-
with each <<color>> parameter resolved according to [[css-color-4#resolving-color-values]],
2381-
and the keywords ''AA'', ''AA-large'', ''AAA'', ''AAA-large'' replaced with their corresponding numeric value.
2382-
23832379
If all <<color>> parameters resolve
23842380
to the corresponding colors in their respective color spaces,
23852381
the computed value is the winning color
23862382
resolved according to [[css-color-4#resolving-color-values]].
23872383
Otherwise (if ''currentColor'' was used in the function),
2388-
the computed value is the same as the specified value,
2384+
the computed value is the ''color-contrast()'' function
2385+
with each <<color>> parameter resolved according to [[css-color-4#resolving-color-values]],
2386+
and the keywords ''AA'', ''AA-large'', ''AAA'', ''AAA-large'' replaced with their corresponding numeric value,
23892387
thus preserving inheritance into child elements.
23902388

23912389
<div class="example">
@@ -2426,20 +2424,17 @@ or any other color or monochrome output device which has been characterized.
24262424

24272425
<h3 id="resolving-mix">Resolving ''color-mix()'' values</h3>
24282426

2429-
The specified value is the ''color-mix()'' function
2430-
with each <<color>> parameter resolved according to [[css-color-4#resolving-color-values]].
2431-
24322427
If all <<color>> parameters resolve
24332428
to the corresponding colors in their respective color spaces,
24342429
the computed value is the mixed color,
24352430
in the specified mixing color space,
24362431
resolved according to [[css-color-4#resolving-color-values]].
24372432
Otherwise (if ''currentColor'' was used in the function),
2438-
the computed value is the same as the specified value
2433+
the computed value is the ''color-mix()'' function
2434+
with each <<color>> parameter resolved according to [[css-color-4#resolving-color-values]],
24392435
thus preserving inheritance into child elements.
24402436

24412437

2442-
24432438
<h3 id="resolving-device-cmyk-values">Resolving ''device-cmyk'' values</h3>
24442439

24452440
The computed and used value

0 commit comments

Comments
 (0)