@@ -5585,7 +5585,25 @@ or generic {{CSSStyleValue}}s (otherwise).
5585
5585
set to the [=reification=]
5586
5586
of its lightness, a, b, and alpha components, respectively.
5587
5587
5588
- 6. If |val| is a ''color()'' function,
5588
+ 6. If |val| is an ''oklch()'' function,
5589
+ then return a new {{CSSOKLCH}} object
5590
+ with its {{CSSOKLCH/l}} ,
5591
+ {{CSSOKLCH/c}} ,
5592
+ {{CSSOKLCH/h}} ,
5593
+ and {{CSSOKLCH/alpha}} internal slots
5594
+ set to the [=reification=]
5595
+ of its lightness, chroma, hue angle, and alpha components, respectively.
5596
+
5597
+ 7. If |val| is an ''oklab()'' function,
5598
+ then return a new {{CSSOKLab}} object
5599
+ with its {{CSSOKLab/l}} ,
5600
+ {{CSSOKLab/a}} ,
5601
+ {{CSSOKLab/b}} ,
5602
+ and {{CSSOKLab/alpha}} internal slots
5603
+ set to the [=reification=]
5604
+ of its lightness, a, b, and alpha components, respectively.
5605
+
5606
+ 8. If |val| is a ''color()'' function,
5589
5607
then return a new {{CSSColor}} object
5590
5608
with its {{CSSColor/colorSpace}} internal slot
5591
5609
set to the result of [=reifying an identifier=]
@@ -5596,7 +5614,7 @@ or generic {{CSSStyleValue}}s (otherwise).
5596
5614
and {{CSSColor/alpha}} internal slot
5597
5615
set to the result of [=reifying=] |val|'s alpha component.
5598
5616
5599
- 7 . If |val| is a <<named-color>> or the keyword ''transparent'' ,
5617
+ 9 . If |val| is a <<named-color>> or the keyword ''transparent'' ,
5600
5618
then return a new {{CSSRGB}} object
5601
5619
with its {{CSSRGB/r}} ,
5602
5620
{{CSSRGB/g}} ,
@@ -5605,7 +5623,7 @@ or generic {{CSSStyleValue}}s (otherwise).
5605
5623
set to the [=reification=]
5606
5624
of its red, green, blue, and alpha components, respectively.
5607
5625
5608
- 8 . If |val| is any other color keyword,
5626
+ 10 . If |val| is any other color keyword,
5609
5627
return the result of [=reifying an identifier=] from |val|.
5610
5628
</div>
5611
5629
0 commit comments