Skip to content

Commit a423ff3

Browse files
[css-color-4] Interpolation between legacy sRGB colors is (once again) in sRGB space, for compatibility. w3c/csswg-drafts@a0a9886
1 parent ba47d27 commit a423ff3

1 file changed

Lines changed: 27 additions & 16 deletions

File tree

css-color-ja.html

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@
428428
●●options
429429

430430
spec_title:CSS Color Module Level 4
431-
spec_date:2025-05-20
432-
trans_update:2025-05-21
431+
spec_date:2025-06-04
432+
trans_update:2025-06-05
433433
source_checked:250316
434434
page_state_key:CSS
435435
original_url:https://drafts.csswg.org/css-color-4/
@@ -1746,6 +1746,7 @@
17461746
突き合わせて:against
17471747
選べる:opt-in
17481748
選べること:opt-in
1749+
選べる:choose to opt-in
17491750
きちんと:well
17501751
ヨイ:optionally
17511752
ものとする:shall be
@@ -2132,7 +2133,6 @@
21322133
短い方:shorter
21332134
旧い:older
21342135
より旧い:older
2135-
旧-:old
21362136
転換-:turn
21372137
目立って:noticeably
21382138
目立った:noticeable
@@ -9264,32 +9264,43 @@ <h3 title="Color Space for Interpolation">12.1. 補間~用の色~空間</h3>
92649264
</p>
92659265

92669266
<p>
9267-
`~host構文$が既定の`補間~色~空間$を定義しない場合、
9268-
~Oklabが既定になる。
9267+
しかしながら,~UAは、[
9268+
旧来の~sRGB色~形式
9269+
( `~hex色$, `有名~色$, `rgb$f, `hsl$f, `hwb$f, あるいは,
9270+
これらに等価な~alphaを含んでいる形)
9271+
どうしの補間
9272+
]を[
9273+
~gamma符号化された~sRGB空間
9274+
]内で取扱う`モノトスル^em。
9275+
これは、
9276+
~Web互換性を供するためである
9277+
— 旧来の~sRGB内容は、
9278+
既定では~sRGB空間~内で補間される。
92699279
9270-
If the host syntax does not define what color space interpolation should take place in, it defaults to Oklab.
9280+
However, user agents must handle interpolation between legacy sRGB color formats (hex colors, named colors, rgb(), hsl() or hwb() and the equivalent alpha-including forms) in gamma-encoded sRGB space. This provides Web compatibility; legacy sRGB content interpolates in the sRGB space by default.
92719281
</p>
92729282

92739283
<p>
9274-
作者は、
9275-
特定0の~instanceにおいて,~sRGB内での補間を選好する場合には
9276-
— 例えば、
9277-
特定0の~gradientに対し,そのような結果が欲される所では —
9278-
`補間~色~空間$として~sRGBを明示的に指定することにより,
9279-
旧-挙動を選べる。
9284+
このことは、
9285+
作者は,~sRGB色どうしでも[
9286+
次のいずれかにより,より良い補間を選べる
9287+
]ことを意味する
9288+
⇒#
9289+
どちらかの色に旧来でない `color(srgb r g b)^v 形を利用する/
9290+
`補間~色~空間$を明示的に指定する
92809291
9281-
Authors that prefer interpolation in sRGB in a particular instance can opt-in to the old behavior by explicitly specifying sRGB as the interpolation color space, for example on a particular gradient where that result is desired.
9292+
This also means that authors can choose to opt-in to better interpolation, even between sRGB colors, by using the non-legacy color(srgb r g b) form for at least one of their colors, or by explicitly specifying an interpolation color space.
92829293
</p>
92839294

92849295
<p>
9285-
色が`補間~色~空間$の色域の外側に補間されることになる場合
9296+
補間される色が`補間~色~空間$の色域の外側にある場合
92869297
その空間へ変換した結果は,範囲~外の値を包含することになる。
92879298
そのような値は、
9288-
~clipされずに,そのまま補間される
9299+
~clipすることなく,そのまま補間するモノトスル
92899300
92909301
If the colors to be interpolated are outside the gamut of the interpolation color space , then once converted to that space, they will contain out of range values.
92919302
9292-
These are not clipped, but the values are interpolated as-is.
9303+
These are not clipped; the values must be interpolated as-is.
92939304
</p>
92949305

92959306
</section>

0 commit comments

Comments
 (0)