@@ -602,26 +602,22 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
602
602
in a particular, given [=color space=]
603
603
(rather than the implicit sRGB color space that most of the other color functions operate in).
604
604
605
- In this specification the ''color()'' function is extended
605
+ In this specification,
606
+ the <<colorspace-params>> taken by the ''color()'' function is extended
606
607
to allow <a href="#predefined-HDR">predefined color spaces for HDR</a> ,
607
608
in addition to the predefined SDR spaces from [[css-color-4#predefined]]
608
609
and the relative color syntax from [[css-color-5#relative-colors]] .
609
610
610
611
Its syntax is now as follows:
611
612
612
613
<pre class='prod'>
613
- <dfn>color()</dfn> = color( [from <<color>> ]? <<colorspace-params>> [ / [ <<alpha-value>> | none ] ]? )
614
614
<dfn><colorspace-params></dfn> = [<<custom-params>> | <<predefined-rgb-params>> |
615
615
<<predefined-polar-params>> | <<predefined-rectangular-params>> | <<xyz-params>> ]
616
- <dfn><custom-params></dfn> = <<dashed-ident>> [ <<number>> | <<percentage>> | none ]+
617
- <dfn><predefined-rgb-params></dfn> = <<predefined-rgb>> [ <<number>> | <<percentage>> | none ]{3}
618
616
<dfn><predefined-polar-params></dfn> = jzczhz [ <<number>> | <<percentage>> | none ]{2} [ <<hue>> | none]
619
617
<dfn><predefined-rectangular-params></dfn> = <<predefined-rectangular>> [ <<number>> | <<percentage>> | none ]{3}
620
618
<dfn><predefined-rgb></dfn> = srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 |
621
619
rec2100-pq | rec2100-hlg | rec2100-linear
622
620
<dfn><predefined-rectangular></dfn> = jzazbz | ictcp
623
- <dfn><xyz-params></dfn> = <<xyz>> [ <<number>> | <<percentage>> | none ]{3}
624
- <dfn><xyz></dfn> = xyz | xyz-d50 | xyz-d65
625
621
</pre>
626
622
627
623
0 commit comments