Skip to content

Commit d39466e

Browse files
[css-color-4] Split color conversion into two stages 他
Split initial step of color interpolation into mandatory preparation and if-needed color space conversion w3c/csswg-drafts@f88da81 Split color conversion into two stages w3c/csswg-drafts@45812cb
1 parent ab40744 commit d39466e

1 file changed

Lines changed: 68 additions & 15 deletions

File tree

css-color-ja.html

Lines changed: 68 additions & 15 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:2026-03-26
432-
trans_update:2026-03-28
431+
spec_date:2026-03-31
432+
trans_update:2026-04-01
433433
source_checked:250316
434434
page_state_key:CSS
435435
original_url:https://drafts.csswg.org/css-color-4/
@@ -784,6 +784,9 @@
784784
~Oklab:#ok-lab
785785
~OkLCh色~空間:#ok-lab
786786

787+
色を変換~用に準備する:#prepare-a-color-col1-for-conversion
788+
色を変換する:#convert-a-color
789+
787790
色域~対応付け:#gamut-mapping
788791
~CSS色域~対応付け:#css-gamut-mapped
789792
~CSS色域~対応付け~algo:#css-gamut-mapping-algorithm
@@ -9203,23 +9206,63 @@ <h2 title="Converting Colors">11. 色の変換-法</h2>
92039206

92049207
<div class="algo">
92059208
<p>
9206-
`色~空間$ %~source に属する色 %~source色 を`色~空間$ %行先 に属する色へ変換するときは、
9207-
次に従うモノトスル:
9209+
`色を変換~用に準備する@
9210+
~algoは、
9211+
所与の
9212+
( 色 %~source色 )
9213+
に対し:
92089214
9209-
To convert a color col1 in a source color space src with white point src-white to a color col2 in destination color space dest with white point dest-white:
9215+
To prepare a color col1 for conversion:
92109216
</p>
92119217
<ol>
9218+
<li id="powerless-to-missing">
9219+
%~source色 を成す各`無力$な成分を`欠落~色~成分$に変更する
9220+
9221+
Change any powerless components in src to missing components
9222+
</li>
92129223
<li id="convert-polrect">
92139224
~IF[
9214-
%~source は`円柱な極-座標$で表現される
9225+
%~source色 が属する色~空間は`円柱な極-座標$で表現される
92159226
92169227
9217-
%~source色 ~SET %~source色 を %~source に対応する`矩形な直交-座標$で表現される色~空間へ変換した結果
9228+
%~source色 ~SET %~source色 を対応する`矩形な直交-座標$で表現される色~空間へ変換した結果
92189229
9219-
If src is in a cylindrical polar color representation, first convert col1 to the corresponding rectangular orthogonal color representation and let this be the new col1.
9230+
If src is in a cylindrical polar color representation, convert col1 to the corresponding rectangular orthogonal color representation and let this be the new col1.
9231+
</li>
9232+
<li>
9233+
~RET %~source色
9234+
9235+
↑</li>
9236+
</ol>
9237+
</div>
9238+
9239+
<div class="algo">
9240+
<p>
9241+
`色を変換する@
9242+
~algoは、
9243+
所与の
9244+
( 色 %~source色, `色~空間$ %行先 )
9245+
に対し:
9246+
9247+
To convert a color col1 in a source color space src with white point src-white to a color col2 in destination color space dest with white point dest-white, where src and dest are different:
9248+
</p>
9249+
<ol>
9250+
<li>
9251+
%~source ~LET %~source色 が属する色~空間
9252+
9253+
↑</li>
9254+
<li>
9255+
~Assert:
9256+
%~source と %行先 は異なる色~空間である。
9257+
9258+
↑</li>
9259+
<li>
9260+
%~source色 ~SET `色を変換~用に準備する$( %~source色 )
9261+
9262+
prepare col1 for conversion
92209263
</li>
92219264
<li id="convert-missing">
9222-
%~source色 を成す】`欠落~色~成分$を 0 に置換する
9265+
%~source色 を成す各`欠落~色~成分$を 0 に置換する
92239266
92249267
Replace any missing component with zero.
92259268
</li>
@@ -9349,13 +9392,17 @@ <h2 title="Color Interpolation">12. 色~補間</h2>
93499392
checking the two colors for analogous components which will be carried forward
93509393
</li>
93519394
<li>
9352-
`補間~色~空間$へ変換する
9353-
この変換は
9354-
すでに`補間~色~空間$に属する色に対しても,`無力$な成分を`欠落~色~成分$へ変更する。
9395+
`色を変換~用に準備する$
9396+
これは
9397+
当の色を成す各`無力$な成分を`欠落~色~成分$へ変更する。
93559398
9356-
converting them to a given color space\
9357-
↑ which will be referred to as the interpolation color space below.\
9358-
If one or both colors are already in the interpolation color space, this conversion changes any powerless components to missing values
9399+
prepare both colors for conversion. this changes any powerless components to missing values
9400+
</li>
9401+
<li>
9402+
`補間~色~空間$へ変換する。
9403+
9404+
converting them both to a given color space\
9405+
↑ which will be referred to as the interpolation color space below.
93599406
</li>
93609407
<li>
93619408
変換された色に`先へ運ばれ$た成分【!値】たちを(もしあれば)挿入し直す。
@@ -16047,6 +16094,12 @@ <h2 title="Changes">変更点</h2>
1604716094
Changes since the Candidate Recommendation Draft of 24 April 2025
1604816095
</dt>
1604916096
<dd>
16097+
色~変換を 2 段階を経るよう分割した。
16098+
( `10211$issue )
16099+
16100+
Split color conversion into two stages (Issue 10211)
16101+
</dd>
16102+
<dd>
1605016103
`~system色$が`使用~色~scheme$にどう反応するかを明確化した。
1605116104
( `13719$issue )
1605216105

0 commit comments

Comments
 (0)