Skip to content

Commit 5263ee4

Browse files
authored
[css-typed-om] Add missing steps to reify oklab() and oklch() w3c/csswg-drafts#12454 (#1141)
1 parent a2d70d4 commit 5263ee4

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

css-typed-om/Overview.bs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5585,7 +5585,25 @@ or generic {{CSSStyleValue}}s (otherwise).
55855585
set to the [=reification=]
55865586
of its lightness, a, b, and alpha components, respectively.
55875587

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,
55895607
then return a new {{CSSColor}} object
55905608
with its {{CSSColor/colorSpace}} internal slot
55915609
set to the result of [=reifying an identifier=]
@@ -5596,7 +5614,7 @@ or generic {{CSSStyleValue}}s (otherwise).
55965614
and {{CSSColor/alpha}} internal slot
55975615
set to the result of [=reifying=] |val|'s alpha component.
55985616

5599-
7. If |val| is a <<named-color>> or the keyword ''transparent'',
5617+
9. If |val| is a <<named-color>> or the keyword ''transparent'',
56005618
then return a new {{CSSRGB}} object
56015619
with its {{CSSRGB/r}},
56025620
{{CSSRGB/g}},
@@ -5605,7 +5623,7 @@ or generic {{CSSStyleValue}}s (otherwise).
56055623
set to the [=reification=]
56065624
of its red, green, blue, and alpha components, respectively.
56075625

5608-
8. If |val| is any other color keyword,
5626+
10. If |val| is any other color keyword,
56095627
return the result of [=reifying an identifier=] from |val|.
56105628
</div>
56115629

0 commit comments

Comments
 (0)