You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1786,7 +1792,7 @@ <h3 title="Calculating the Result of color-mix">3.3. `color-mix^f の結果の
1786
1792
• Let item stack be a stack made by reversing items. (Thus, with the first item at the top of the stack.)
1787
1793
• While item stack has length 2 or greater:
1788
1794
•• Pop from item stack twice, letting a and b be the two results in order. Let combined percentage be the sum of a and b’s percentages.
1789
-
•• Interpolate a and b’s colors as described in CSS Color 4 § 12. Color Interpolation, with a progress percentage equal to (b’s percentage) / combined percentage). If the specified color space is a cylindrical polar color space, then the <hue-interpolation-method> controls the interpolation of hue, as described in CSS Color 4 § 12.4 Hue Interpolation. If no <hue-interpolation-method> is specified, assume shorter.
1795
+
•• Interpolate a and b’s colors as described in CSS Color 4 § 13. Color Interpolation, with a progress percentage equal to (b’s percentage) / combined percentage). If the specified color space is a cylindrical polar color space, then the <hue-interpolation-method> controls the interpolation of hue, as described in CSS Color 4 § 13.4 Hue Interpolation. If no <hue-interpolation-method> is specified, assume shorter.
1790
1796
•• Create a new mix item with the resulting color and a percentage of combined percentage, and push it onto item stack.
1791
1797
• Set color to the color of the sole remaining item in item stack.
1792
1798
</li>
@@ -2872,12 +2878,12 @@ <h3 title="Processing Model for Relative Colors ">4.1. 相対~色~用の処理~m
Missing components are handled the same way as with CSS Color 4 § 12.2 Interpolating with Missing Components: the origin colorspace and the relative function colorspace are checked for analogous components which are then carried forward as missing.
2886
+
Missing components are handled the same way as with CSS Color 4 § 13.2 Interpolating with Missing Components: the origin colorspace and the relative function colorspace are checked for analogous components which are then carried forward as missing.
2881
2887
</p>
2882
2888
2883
2889
<p>
@@ -6231,7 +6237,7 @@ <h3 title="Color Space for Interpolation">9.1. 補間~用の色~空間</h3>
6231
6237
にて定義される `color-interpolation-method$t は、
6232
6238
次のとおり,`~custom色~空間$の利用を許容するよう拡張される:
6233
6239
◎
6234
-
The <color-interpolation-method>, as defined in CSS Color 4 § 12.1 Color Space for Interpolation, is extended to allow use of the custom color spaces:
6240
+
The <color-interpolation-method>, as defined in CSS Color 4 § 13.1 Color Space for Interpolation, is extended to allow use of the custom color spaces:
If all <color> parameters resolve to the corresponding colors in their respective color spaces, the computed value is the mixed color, in the specified mixing color space, resolved according to CSS Color 4 § 14. Resolving <color> Values.\
6301
+
If all <color> parameters resolve to the corresponding colors in their respective color spaces, the computed value is the mixed color, in the specified mixing color space, resolved according to CSS Color 4 § 15. Resolving <color> Values.\
Otherwise (if currentColor was used in the function), the computed value is the color-mix() function with each <color> parameter resolved according to CSS Color 4 § 14. Resolving <color> Values, thus preserving inheritance into child elements.
6312
+
Otherwise (if currentColor was used in the function), the computed value is the color-mix() function with each <color> parameter resolved according to CSS Color 4 § 15. Resolving <color> Values, thus preserving inheritance into child elements.
If all <color> parameters resolve to the corresponding colors in their respective color spaces, the computed value is the absolute <color> value, in the specified RCS color space, resolved according to CSS Color 4 § 14. Resolving <color> Values.
6334
+
If all <color> parameters resolve to the corresponding colors in their respective color spaces, the computed value is the absolute <color> value, in the specified RCS color space, resolved according to CSS Color 4 § 15. Resolving <color> Values.
Otherwise (if currentColor was used in the function), the computed value is the Relative Color Syntax function with the origin <color> parameter resolved according to CSS Color 4 § 14. Resolving <color> Values, thus preserving inheritance into child elements.
6345
+
Otherwise (if currentColor was used in the function), the computed value is the Relative Color Syntax function with the origin <color> parameter resolved according to CSS Color 4 § 15. Resolving <color> Values, thus preserving inheritance into child elements.
This section extends CSS Color 4 § 15. Serializing <color> Values to add serialization of the results of the color-mix(), device-cmyk(), and relative color functions.
6456
+
This section extends CSS Color 4 § 16. Serializing <color> Values to add serialization of the results of the color-mix(), device-cmyk(), and relative color functions.
However, if the result of mixing in the hsl or hwb color space has at least one missing color component (including a missing alpha carried forward per CSS Color 4 § 13.2 Interpolating with Missing Components), the form used is the modern hsl(h s l / a) or hwb(h w b / a) syntax respectively, preserving the original color function and each none value per CSS Color 4 § 16.2.2 CSS serialization of sRGB values, rather than degrading to color(srgb r g b) (which would lose the hsl/hwb identity).
6971
+
</li>
6947
6972
</ul>
6948
6973
6949
6974
<p>
6950
6975
往復するための`最小^emな精度は、[
6951
6976
`~level 4$ の `§ ~color_t 値の直列化-法$
6952
6977
]にて指定されたそれと同じとする。
6953
6978
◎
6954
-
The minimum precision for round-tripping is the same as that specified in CSS Color 4 § 15. Serializing <color> Values.
6979
+
The minimum precision for round-tripping is the same as that specified in CSS Color 4 § 16. Serializing <color> Values.
For example, the serialization of the declared value of
7363
-
• hsl(from hsl(none 10% 50%) h s l);
7364
-
is the string "hsl(from hsl(none 10% 50%) h s l)", while the serialization of the computed value is the string "color(srgb 0.55 0.45 0.45)".
7396
+
◎
7397
+
hsl(from rebeccapurple none none none / none);
7398
+
◎
7399
+
is the string "hsl(from rebeccapurple none none none / none)".
7400
+
</p>
7401
+
7402
+
<p>
7403
+
`算出d値$は,`先へ運ばれ$た欠落な~alphaがあるので
7404
+
(~alphaに`相似的な成分$は~alphaである)、
7405
+
その[
7406
+
色相, 彩度, 明度, ~alpha
7407
+
]すべてが`欠落~成分$である`相対~色$ `hsl$f を与える。
7408
+
`解決d値$は`欠落~成分$を包含するので、
7409
+
その直列化は `hsl$f 用の`現代の色~構文$を利用する
7410
+
— 結果は、
7411
+
`color(srgb 0 0 0 / none)^l ではなく,
7412
+
`hsl(none none none / none)^l になる。
7413
+
◎
7414
+
The computed value carries forward the missing alpha (alpha is its own analogous component), giving an hsl() relative color whose hue, saturation, lightness, and alpha are all missing. Because the resolved value contains missing color components, the serialization uses the modern hsl() form, yielding the string "hsl(none none none / none)" rather than color(srgb 0 0 0 / none).
For example, the serialization of the declared value of
7387
7427
• hsl(from hsl(127.9 302% 25.33%) h s l);
7388
-
is the string "hsl(from hsl(127.9 302% 25.33%) h s l)", while the serialization of the computed value is the string "color(srgb -0.511666 1.018266 -0.310225)".
7428
+
is the string "hsl(from hsl(127.9 302% 25.33%) h s l)",\
7429
+
</p>
7430
+
7431
+
<p>
7432
+
一方で,その算出d値を直列化した結果は
7433
+
⇒
7434
+
`color(srgb -0.511666 1.018266 -0.310225)^l
7435
+
◎
7436
+
while the serialization of the computed value is the string "color(srgb -0.511666 1.018266 -0.310225)".
However, if the resolved value of an hsl() or hwb() relative color has at least one missing color component (including a missing alpha carried forward from the origin color per CSS Color 4 § 13.2 Interpolating with Missing Components), the form used is the modern hsl(h s l / a) or hwb(h w b / a) syntax respectively, preserving the original color function and each none value, rather than degrading to color(srgb r g b) (which would lose the hsl/hwb identity). This parallels § 11.2 Serializing Origin Colors, which always emits the modern slash syntax for origin colors, and follows the general sRGB serialization rules in CSS Color 4 § 16.2.2 CSS serialization of sRGB values.
7575
+
</li>
7508
7576
</ul>
7509
7577
7510
7578
<p>
@@ -7513,7 +7581,7 @@ <h3 title="Serializing Relative Color Functions">11.3. 相対~色~関数の直
0 commit comments