Skip to content

Commit 13a2dcb

Browse files
[css-color-4] Clarified how system colors react to the used color scheme w3c/csswg-drafts@1ba4665
+編集(訳注/誤記( "one" → "none"
1 parent 0a88fc6 commit 13a2dcb

1 file changed

Lines changed: 48 additions & 21 deletions

File tree

css-color-ja.html

Lines changed: 48 additions & 21 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-02-23
432-
trans_update:2026-02-24
431+
spec_date:2026-03-26
432+
trans_update:2026-03-28
433433
source_checked:250316
434434
page_state_key:CSS
435435
original_url:https://drafts.csswg.org/css-color-4/
@@ -839,6 +839,7 @@
839839

840840
積層~文脈:~CSS2J#stacking-context
841841
強制d色~mode:~CSSCOLORADJUST#forced-colors-mode
842+
使用~色~scheme:~CSSCOLORADJUST#used-color-scheme
842843
媒体~特能:~MQ5#media-feature
843844

844845
有位置:~CSSPOS#positioned-box
@@ -2812,8 +2813,10 @@ <h1>CSS Color Module Level 4</h1>
28122813
]用の各種~CSS[
28132814
`color$t 値, ~prop
28142815
]を述べる。
2816+
また、
2817+
色がどう補間されるか, および異なる色域へ対応付ける方法も述べる。
28152818
2816-
This specification describes CSS &lt;color&gt; values and properties for foreground color and group opacity.
2819+
This specification describes CSS &lt;color&gt; values, and properties for foreground color and group opacity. It also describes how colors are interpolated, and how to gamut map colors.
28172820
</p>
28182821

28192822
~CSSisaLANG
@@ -4742,13 +4745,17 @@ <h3 title="The RGB functions: rgb() and rgba()">5.1. ~RGB関数: `rgb^f, `rgba
47424745
`modern-rgb-syntax@t
47434746
= rgb(
47444747
[ `number$t | `percentage$t | `none$v]{3}
4745-
[ / [`alpha-value$t | one] ]? )
4748+
[ / [`alpha-value$t | `none$v] ]? )
47464749
`modern-rgba-syntax@t
47474750
= rgba(
47484751
[ `number$t | `percentage$t | `none$v]{3}
47494752
[ / [`alpha-value$t | `none$v] ]? )
47504753
</pre>
47514754

4755+
<p class="trans-note">【
4756+
関数~名を除いて,
4757+
`rgb^f と `rgba^f の構文は一致する。
4758+
】</p>
47524759

47534760
<div>
47544761
<table id="prr-rgb"><tbody>
@@ -5155,9 +5162,10 @@ <h3 title="System Colors">6.2. ~system色</h3>
51555162

51565163
<p>
51575164
判読し易さを保守するため、
5158-
`system-color$t ~keywordは,明な~modeから暗な~modeへの(およびその逆の)変化にも応答する。
5165+
`system-color$t ~keywordは,
5166+
`使用~色~scheme$にも応答する。
51595167
5160-
To maintain legibility, the &lt;system-color&gt; keywords also respond to light mode or dark mode changes.
5168+
To maintain legibility, the &lt;system-color&gt; keywords also respond to the used color scheme.
51615169
</p>
51625170

51635171
<div class="example" id="ex-LM-DM-links">
@@ -5199,13 +5207,15 @@ <h3 title="System Colors">6.2. ~system色</h3>
51995207

52005208
<p>
52015209
しかしながら,`強制d色~mode$においては、
5202-
~page上のほとんどの色は,利用者が選んだ制約された~paletteの中に強制される。
5210+
~page上のほとんどの色は,利用者が選んだ制約された~paletteの中に強制される
5211+
— `CSS-COLOR-ADJUST-1$r `§ 強制d色~mode用の色~palette@~CSSCOLORADJUST#forced-color-palettes$
5212+
を見よ。
52035213
各種
52045214
`system-color@t
52055215
~keywordは,この~paletteを成す色を公開して、
52065216
~pageの残りを,この制約された~paletteに統合できるようにする。
52075217
5208-
However, in forced colors mode, most colors on the page are forced into a restricted, user-chosen palette. The &lt;system-color&gt; keywords expose these user-chosen colors so that the rest of the page can integrate with this restricted palette.
5218+
However, in forced colors mode, most colors on the page are forced into a restricted, user-chosen palette, see CSS Color Adjustment 1 § 5.2 Forced Colors Mode Color Palettes. The &lt;system-color&gt; keywords expose these user-chosen colors so that the rest of the page can integrate with this restricted palette.
52095219
</p>
52105220

52115221
<p>
@@ -5903,6 +5913,11 @@ <h2 title="HSL Colors: hsl() and hsla() functions">7. HSL 色: `hsl^f, `hsla^f
59035913
= hsla( `hue$t, `percentage$t, `percentage$t, `alpha-value$t? )
59045914
</pre>
59055915

5916+
<p class="trans-note">【
5917+
関数~名を除いて,
5918+
`hsl^f と `hsla^f の構文は一致する。
5919+
】</p>
5920+
59065921
<div>
59075922
<table id="prr-hsl"><tbody>
59085923
<tr><th>百分率
@@ -11928,7 +11943,7 @@ <h4 title="Sample Pseudocode for the Ray Trace Gamut Mapping">13.2.6. 射線~tra
1192811943
<li>
1192911944
%交点 ~LET `射線を投影する$( %~anchor, %~RGB色 )
1193011945
11931-
• Cast a ray from anchor to origin_rgb and let intersection be the intersection of this ray with the gamut boundary
11946+
• Cast a ray from start = anchor to end = origin_rgb and let intersection be the intersection of this ray with the gamut boundary
1193211947
</li>
1193311948
<li>
1193411949
<p>
@@ -12104,12 +12119,12 @@ <h4 title="Sample Pseudocode for the Ray Trace Gamut Mapping">13.2.6. 射線~tra
1210412119
<li>
1210512120
%a ~LET %始端[ %i ]
1210612121
12107-
let a be start[i]
12122+
let a be start [i]
1210812123
</li>
1210912124
<li>
1211012125
%b ~LET %終端[ %i ]
1211112126
12112-
let b be end[i]
12127+
let b be end [i]
1211312128
</li>
1211412129
<li>
1211512130
%d ~LET %b ~MINUS %a
@@ -12119,7 +12134,7 @@ <h4 title="Sample Pseudocode for the Ray Trace Gamut Mapping">13.2.6. 射線~tra
1211912134
<li>
1212012135
%方向 に %d を`付加する$
1212112136
12122-
let direction[i] be d
12137+
let direction [i] be d
1212312138
</li>
1212412139
<li>
1212512140
<p>
@@ -12134,22 +12149,22 @@ <h4 title="Sample Pseudocode for the Ray Trace Gamut Mapping">13.2.6. 射線~tra
1213412149
<li>
1213512150
%t1 ~LET ( %最小[ %i ] ~MINUS %a ) ~DIV %d
1213612151
12137-
let t1 be (bmin[i] - a) * inv_d
12152+
let t1 be (bmin [i] - a ) * inv_d
1213812153
</li>
1213912154
<li>
1214012155
%t2 ~LET ( %最大[ %i ] ~MINUS %a ) ~DIV %d
1214112156
12142-
let t2 be (bmax[i] - a) * inv_d
12157+
let t2 be (bmax [i] - a ) * inv_d
1214312158
</li>
1214412159
<li>
1214512160
%近 ~SET `max^op( `min^op( %t1, %t2 ), %近 )
1214612161
12147-
let tnear be max(min(t1, t2), tnear)
12162+
let tnear be max(min(t1, t2), tnear )
1214812163
</li>
1214912164
<li>
1215012165
%遠 ~SET `min^op( `max^op( %t1, %t2 ), %遠 )
1215112166
12152-
let tfar be min(max(t1, t2), tfar)
12167+
let tfar be min(max(t1, t2), tfar )
1215312168
</li>
1215412169
</ol>
1215512170
</li>
@@ -12162,7 +12177,7 @@ <h4 title="Sample Pseudocode for the Ray Trace Gamut Mapping">13.2.6. 射線~tra
1216212177
1216312178
~RET ε
1216412179
12165-
else if (a &lt; bmin[i] or a &gt; bmax[i])
12180+
else if (a &lt; bmin [i] or a &gt; bmax [i])
1216612181
• return INTERSECTION NOT FOUND
1216712182
</li>
1216812183
</ol>
@@ -12221,7 +12236,7 @@ <h4 title="Sample Pseudocode for the Ray Trace Gamut Mapping">13.2.6. 射線~tra
1222112236
%始端[ %i ] ~PLUS %方向[ %i ] ~MUL %近
1222212237
1222312238
for (i =0; i &lt; 3; i++):
12224-
• let result[i] be start[i] + direction[i] * tnear
12239+
• let result [i] be start [i] + direction [i] * tnear
1222512240
</li>
1222612241
<li>
1222712242
~RET %結果
@@ -12260,7 +12275,7 @@ <h5 title="Footnotes for Ray Trace algorithm">13.2.6.1. 射線~trace~algo用の
1226012275
For typical RGB spaces where the gamut bounds are 0 and 1 for each component this simplifies to a single constant rather than a 3-element array.
1226112276
1226212277
#raytrace-footnote-7
12263-
favoring the first intersection in the direction start -&gt; end.
12278+
favoring the first intersection in the direction start -&gt; end .
1226412279
</div>
1226512280

1226612281
</section>
@@ -12720,11 +12735,11 @@ <h3 title="Resolving other colors">14.5. その他の色の解決-法</h3>
1272012735
`算出d値$は、
1272112736
それが属する色~空間~内の対応する色になる。
1272212737
しかしながら、
12723-
そのような色は,強制d色~modeにより改められないモノトスル。
12738+
そのような色は,`強制d色~mode$により改められないモノトスル。
1272412739
</li>
1272512740
</ul>
1272612741
12727-
The declared value for each &lt;system-color&gt; keyword and &lt;deprecated-color&gt; keyword is itself. The computed value is the corresponding color in its color space. However, such colors must not be altered by 'forced colors mode'.
12742+
The declared value for each &lt;system-color&gt; keyword and &lt;deprecated-color&gt; keyword is itself. The computed value is the corresponding color in its color space. However, such colors must not be altered by forced colors mode.
1272812743
</div>
1272912744

1273012745
<div class="example" id="ex-system-resolve">
@@ -16032,6 +16047,18 @@ <h2 title="Changes">変更点</h2>
1603216047
Changes since the Candidate Recommendation Draft of 24 April 2025
1603316048
</dt>
1603416049
<dd>
16050+
`~system色$が`使用~色~scheme$にどう反応するかを明確化した。
16051+
( `13719$issue )
16052+
16053+
Clarified how system colors react to the used color scheme (Issue 13719)
16054+
</dd>
16055+
<dd>
16056+
要約aを更新した
16057+
— 色~補間と色域~対応付けを言及するよう。
16058+
16059+
Updated abstract to mention color interpolation and gamut mapping.
16060+
</dd>
16061+
<dd>
1603516062
~CSS色域~対応付けが目指すものに関する言い回しを明確化した。
1603616063
1603716064
Clarified wording regarding the aims of CSS gamut mapping

0 commit comments

Comments
 (0)