Skip to content

Commit ca40500

Browse files
committed
[css-color-4] computed value of color(xyz ...) is color(xyz-d65 ...) fix w3c#6834
1 parent 25da28d commit ca40500

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

css-color-4/Overview.bs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,18 @@ Resolving <<color>> Values</h3>
827827
<pre class="lang-css"><span class="swatch" style="--color: goldenrod"></span> color(display-p3 0.823 0.6554 0.2537)</pre>
828828
</div>
829829

830+
For colors specified in the ''xyz'' [=color space=],
831+
which is an alias of the ''xyz-d65'' [=color space=],
832+
the computed and used value
833+
is in the ''xyz-d65'' [=color space=].
834+
835+
<div class="example" id="wx-xyz-computed">
836+
<p>For example, the computed value of</p>
837+
<pre class="lang-css"><span class="swatch" style="--color: rgb(95.1% 53.3% 33%)"></span> color(xyz 0.472 0.372 0.131)</pre>
838+
<p>is</p>
839+
<pre class="lang-css"><span class="swatch" style="--color: rgb(95.1% 53.3% 33%)"></span> color(xyz-d65 0.472 0.372 0.131)</pre>
840+
</div>
841+
830842
<h4 id="resolving-other-colors">Resolving other colors</h4>
831843

832844
This applies to [=system colors=]
@@ -5020,6 +5032,7 @@ Changes</h2>
50205032
</h3>
50215033

50225034
<ul>
5035+
<li>Computed value of color(xyz ...) is color(xyz-d65 ...)</li>
50235036
<li>Added srgb-linear to interpolation colorspaces</li>
50245037
<li>Updated Changes from Colors 3 section</li>
50255038
<li>Added Resolving OKLab and OKLCH values section</li>

0 commit comments

Comments
 (0)