Skip to content

Commit ccd1b4c

Browse files
[css-color-4] Collected together and clarified serialization of opacity values into one section w3c/csswg-drafts@aa4704b
1 parent 4192cd0 commit ccd1b4c

File tree

1 file changed

+70
-14
lines changed

1 file changed

+70
-14
lines changed

css-color-ja.html

+70-14
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,7 @@
15241524
すべて小文字~化:in all-lowercase
15251525
深度:depth:~
15261526
基数:base:~
1527+
基数 10:base ten
15271528
後続-:follow:~
15281529
数値:numeric value:~
15291530

@@ -5421,7 +5422,7 @@ <h3 title="System Colors">6.2. ~system色</h3>
54215422
`§ ~securityの考慮点@#security$
54225423
に。
54235424
5424-
Note: The &lt;system-color&gt;s incur some privacy and security risk, as detailed in § 20 Privacy Considerations and § 19 Security Considerations.
5425+
Note: The &lt;system-color&gt;s incur some privacy and security risk, as detailed in § 21 Privacy Considerations and § 20 Security Considerations.
54255426
</p>
54265427

54275428
<p>
@@ -6699,7 +6700,7 @@ <h3 title="CIE Lab and LCH">9.1. ~CIE~Lab, ~CIE~LCH</h3>
66996700
`§ ~DeltaE 2000@#color-difference-2000$
67006701
にて与えられる。
67016702
6702-
To compensate for this, formulae to predict the visual difference between two colors (delta E) have been made more accurate over time (but also, much more complex to compute). The current industry standard formula, delta E 2000, works well to mitigate some of the Lab and LCH problems. A sample implementation is given in § 18.1 ΔE2000.
6703+
To compensate for this, formulae to predict the visual difference between two colors (delta E) have been made more accurate over time (but also, much more complex to compute). The current industry standard formula, delta E 2000, works well to mitigate some of the Lab and LCH problems. A sample implementation is given in § 19.1 ΔE2000.
67036704
</p>
67046705

67056706
<p>
@@ -6844,7 +6845,7 @@ <h3 title="Oklab and OKLCh">9.2. ~Oklabと~OKLCh</h3>
68446845
`§ ~DeltaE~OK@#color-difference-OK$
68456846
にて与えられる。
68466847
6847-
Because Oklab is more perceptually uniform than CIE Lab, the color difference is a straightforward distance in 3D space (root sum of squares). Although trivial, a sample implementation is give in § 18.2 ΔEOK.
6848+
Because Oklab is more perceptually uniform than CIE Lab, the color difference is a straightforward distance in 3D space (root sum of squares). Although trivial, a sample implementation is give in § 19.2 ΔEOK.
68486849
</p>
68496850

68506851
</section>
@@ -8643,7 +8644,7 @@ <h3 title="Converting Predefined Color Spaces to Lab or Oklab">10.9. 定義済
86438644
<p>
86448645
`§ 色~変換~codeの見本$に,この変換~用の見本~JS~codeがある。
86458646
8646-
There is sample JavaScript code for these conversions in § 17 Sample code for Color Conversions.
8647+
There is sample JavaScript code for these conversions in § 18 Sample code for Color Conversions.
86478648
</p>
86488649

86498650
</section>
@@ -8723,7 +8724,7 @@ <h3 title="Converting Lab or Oklab to Predefined RGB Color Spaces">10.10. ~Lab
87238724
<p>
87248725
`§ 色~変換~codeの見本$に,この変換~用の見本~JS~codeがある。
87258726
8726-
There is sample JavaScript code for these conversions in § 17 Sample code for Color Conversions.
8727+
There is sample JavaScript code for these conversions in § 18 Sample code for Color Conversions.
87278728
</p>
87288729

87298730
<p>
@@ -8782,7 +8783,7 @@ <h3 title="Converting Between Predefined RGB Color Spaces">10.11. 定義済み~R
87828783
<p>
87838784
`§ 色~変換~codeの見本$にて,定義済み~RGB色~空間~用の この変換~用の見本~JS~codeがある。
87848785
8785-
There is sample JavaScript code for this conversion for the predefined RGB color spaces, in § 17 Sample code for Color Conversions.
8786+
There is sample JavaScript code for this conversion for the predefined RGB color spaces, in § 18 Sample code for Color Conversions.
87868787
</p>
87878788

87888789
</section>
@@ -9767,7 +9768,7 @@ <h3 title="Interpolating with Alpha">12.3. ~alphaを伴う色の補間-法</h3>
97679768
]用の見本~JS~codeがある
97689769
— `円柱な極-座標$用にも, `矩形な直交-座標$用にも。
97699770
9770-
There is sample JavaScript code for alpha premultiplication and un-premultiplication, for both polar and rectangular color spaces, in § 17 Sample code for Color Conversions.
9771+
There is sample JavaScript code for alpha premultiplication and un-premultiplication, for both polar and rectangular color spaces, in § 18 Sample code for Color Conversions.
97719772
</p>
97729773

97739774
</section>
@@ -11757,12 +11758,12 @@ <h3 title="Serializing alpha values">15.1. ~alpha値の直列化-法</h3>
1175711758
</div>
1175811759

1175911760
<p>
11760-
~alpha値に維持される精度
11761+
~alpha値と伴に維持される精度
1176111762
— したがって、
1176211763
直列化した結果における小数部の桁数 —
1176311764
は,この仕様では定義されないが、
1176411765
少なくとも[
11765-
整数な百分率~値が往復する
11766+
整数をとる百分率~値が往復する
1176611767
]に足るようにするモノトスル。
1176711768
したがって,結果における小数部は、
1176811769
尾部を成す 0 たちが省略された場合を除き,
@@ -12762,8 +12763,63 @@ <h3 title="Serializing other colors">15.6. 他の色の直列化-法</h3>
1276212763

1276312764
</section>
1276412765
</section>
12766+
<section id="serializing-opacity-values">
12767+
<h2 title="Serializing &lt;opacity-value&gt;">16. `opacity-value$t の直列化-法</h2>
12768+
12769+
<p>
12770+
この節は、
12771+
`opacity$p ~propに適用される。
12772+
12773+
This applies to the opacity property.
12774+
</p>
12775+
12776+
<p class="trans-note">【
12777+
定義~表tにおいて `opacity$p あるいは `opacity-value$t を参照している他の~propにも。
12778+
】</p>
12779+
12780+
<p>
12781+
所与の指定された不透明度~値【 `opacity-value$t の`指定d値$】は、
12782+
`percentage$t ではなく `number$t として直列化される
12783+
— 直列化した結果は、
12784+
次に従うモノトスル
12785+
⇒#
12786+
基数 10 で表出する。
12787+
小数点文字には `002E^U ( `.^l )を利用する。
12788+
先頭の 0 は省略しない。
12789+
尾部を成す 0 たちは省略する。
12790+
12791+
The specified given opacity value is serialized as a &lt;number&gt;, not a &lt;percentage&gt;.
12792+
12793+
This &lt;number&gt; value is expressed in base ten, with the "." character as decimal separator. The leading zero must not be omitted. Trailing zeroes must be omitted.
12794+
</p>
12795+
12796+
<p>
12797+
範囲 [0,1] の外側にある不透明度~値は、
12798+
直列化された指定d値においても,切詰めることなく保全される。
12799+
12800+
Opacity values outside the range [0,1] are preserved, without clamping, in the serialized specified value.
12801+
</p>
12802+
12803+
<p>
12804+
不透明度~値と伴に維持される精度
12805+
— したがって、
12806+
直列化した結果における小数部の桁数 —
12807+
は,この仕様では定義されないが、
12808+
少なくとも[
12809+
整数をとる百分率~値が往復する
12810+
]に足るようにするモノトスル。
12811+
したがって,結果における小数部は、
12812+
尾部を成す 0 たちが省略された場合を除き,
12813+
2 桁以上になる。
12814+
値は、
12815+
切捨てるのではなく,`丸める$モノトスル。
12816+
12817+
The precision with which opacity values are retained, and thus the number of decimal places in the serialized value, is not defined in this specification, but must at least be sufficient to round-trip integer percentage values. Thus, the serialized value must contain at least two decimal places (unless trailing zeroes have been removed). Values must be rounded towards +∞, not truncated.
12818+
</p>
12819+
12820+
</section>
1276512821
<section id="sample">
12766-
<h2 title="Default Style Rules">16. 既定の~style規則</h2>
12822+
<h2 title="Default Style Rules">17. 既定の~style規則</h2>
1276712823

1276812824
<p>
1276912825
次の~stylesheetは参考であり,規範的ではない。
@@ -12787,7 +12843,7 @@ <h2 title="Default Style Rules">16. 既定の~style規則</h2>
1278712843

1278812844
</section>
1278912845
<section id="color-conversion-code">
12790-
<h2 title="Sample code for Color Conversions">17. 色~変換~用の見本~code</h2>
12846+
<h2 title="Sample code for Color Conversions">18. 色~変換~用の見本~code</h2>
1279112847

1279212848
◎非規範的
1279312849

@@ -13647,12 +13703,12 @@ <h2 title="Sample code for Color Conversions">17. 色~変換~用の見本~code</
1364713703

1364813704
</section>
1364913705
<section id="color-difference-code">
13650-
<h2 title="Sample Code for ΔE2000 and ΔEOK Color Differences">18. [~DeltaE 2000, ~DeltaE~OK]色~差~用の見本~code</h2>
13706+
<h2 title="Sample Code for ΔE2000 and ΔEOK Color Differences">19. [~DeltaE 2000, ~DeltaE~OK]色~差~用の見本~code</h2>
1365113707

1365213708
◎非規範的
1365313709

1365413710
<section id="color-difference-2000">
13655-
<h3 title="ΔE2000">18.1. ~DeltaE 2000</h3>
13711+
<h3 title="ΔE2000">19.1. ~DeltaE 2000</h3>
1365613712

1365713713
<p>
1365813714
最も単純な色~差~計量~DeltaE 76 は、
@@ -13958,7 +14014,7 @@ <h3 title="ΔE2000">18.1. ~DeltaE 2000</h3>
1395814014

1395914015
</section>
1396014016
<section id="color-difference-OK">
13961-
<h3 title="ΔEOK">18.2. ~DeltaE~OK</h3>
14017+
<h3 title="ΔEOK">19.2. ~DeltaE~OK</h3>
1396214018

1396314019
<p>
1396414020
~Oklabには、

0 commit comments

Comments
 (0)