@@ -2380,8 +2380,13 @@ or any other color or monochrome output device which has been characterized.
2380
2380
with each <<color>> parameter resolved according to [[css-color-4#resolving-color-values]] ,
2381
2381
and the keywords ''AA'' , ''AA-large'' , ''AAA'' , ''AAA-large'' replaced with their corresponding numeric value.
2382
2382
2383
- The used value is the winning color
2383
+ If all <<color>> parameters resolve
2384
+ to the corresponding colors in their respective color spaces,
2385
+ the used value is the winning color
2384
2386
resolved according to [[css-color-4#resolving-color-values]] .
2387
+ Otherwise (if ''currentColor'' was used in the function),
2388
+ the used value is the same as the computed value
2389
+ thus preserving inheritance into child elements.
2385
2390
2386
2391
<div class="example">
2387
2392
@@ -2393,19 +2398,27 @@ or any other color or monochrome output device which has been characterized.
2393
2398
color-contrast(currentColor vs hsl(200 83% 23%), purple to AA)
2394
2399
</pre>
2395
2400
2396
- has the computed value
2401
+ has the computed and used value
2397
2402
2398
2403
<pre class="lang-css">
2399
2404
color-contrast(currentColor vs rgb(10 75 107), rgb(128 0 128) to 4.5)
2400
2405
</pre>
2401
2406
2402
- and the used value
2407
+ </div>
2403
2408
2404
- <pre class="lang-css">
2405
- rgb(128 0 128)
2406
- </pre>
2409
+ <h3 id="resolving-mix">Resolving ''color-mix()'' values</h3>
2407
2410
2408
- </div>
2411
+ The computed value is the specified ''color-mix()'' function
2412
+ with each <<color>> parameter resolved according to [[css-color-4#resolving-color-values]] .
2413
+
2414
+ If all <<color>> parameters resolve
2415
+ to the corresponding colors in their respective color spaces,
2416
+ the used value is the mixed color,
2417
+ in the specified mixing color space,
2418
+ resolved according to [[css-color-4#resolving-color-values]] .
2419
+ Otherwise (if ''currentColor'' was used in the function),
2420
+ the used value is the same as the computed value
2421
+ thus preserving inheritance into child elements.
2409
2422
2410
2423
2411
2424
0 commit comments