Skip to content

Commit 8e36320

Browse files
[css-properties-values-api] 諸々の編集
1 parent fd57ff0 commit 8e36320

File tree

1 file changed

+58
-43
lines changed

1 file changed

+58
-43
lines changed

css-properties-values-api-ja.html

+58-43
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@
356356

357357
~custom~prop:~CSSVAR#custom-property
358358
代入:~CSSVAL5#substitute-arbitrary-substitution-function
359+
代入-:~CSSVAL5#substitute-arbitrary-substitution-function
359360
算出d値の時点で無効:~CSSVAL5#invalid-at-computed-value-time
360361
無効が保証される値:~CSSVAR#guaranteed-invalid-value
361362

@@ -1091,9 +1092,9 @@ <h3 title="Specified Value-Time Behavior">2.3. `指定d値$の時点の挙動</h
10911092

10921093
<p>
10931094
未登録な他の`~custom~prop$と同じく,`登録-済み~custom~prop$は、
1094-
登録された構文を問わず,
1095-
`inherit$v, `revert$v
1096-
]などの`~CSS全域~keyword$を受容する。
1095+
登録された構文を問わず,`~CSS全域~keyword$
1096+
`inherit$v, `revert$v など)
1097+
を受容する。
10971098
それらの挙動は、
10981099
`CSS-CASCADE-4$r `§ 明示的な~default法@~CASCADE#defaulting-keywords$
10991100
にて定義される。
@@ -1114,15 +1115,15 @@ <h3 title="Computed Value-Time Behavior">2.4. 算出d値の時点の挙動</h3>
11141115

11151116
<p>
11161117
`~custom~prop登録$の構文が`全称~構文~定義$である場合、
1117-
~propの`算出d値$は,未登録な`~custom~prop$に対するときと同じになる
1118-
(指定d値を成す変数たちに`代入$を適用した結果か,`無効が保証される値$になる)。
1118+
~propの`算出d値$は,未登録な`~custom~prop$であった場合と同じになる
1119+
(指定d値を成す変数たちに`代入-$された結果か,`無効が保証される値$になる)。
11191120
11201121
If the registration’s syntax is the universal syntax definition, the computed value is the same as for unregistered custom properties (either the specified value with variables substituted, or the guaranteed-invalid value).
11211122
</p>
11221123

11231124
<p>
11241125
他の場合、
1125-
~propの値を,登録された構文に`則って構文解析-$しようと試みる
1126+
~propの値を,登録された構文に`則って構文解析-$するよう試みる
11261127
これに失敗した場合、
11271128
当の宣言は`算出d値の時点で無効$であり,`算出d値$はそれに則って決定される。
11281129
成功した場合の`算出d値$は、
@@ -1149,7 +1150,7 @@ <h3 title="Computed Value-Time Behavior">2.4. 算出d値の時点の挙動</h3>
11491150
</p>
11501151
<ul class="switch">
11511152
<li>
1152-
~literalで与えられた`次元$である場合( `50em^v や `.2s^v など)
1153+
~literalな`次元$である場合( `50em^v や `.2s^v など)
11531154
11541155
指定d値を,その単位に対応する`正準-単位$による値に換算した結果になる。
11551156
@@ -1158,7 +1159,8 @@ <h3 title="Computed Value-Time Behavior">2.4. 算出d値の時点の挙動</h3>
11581159
<li>
11591160
他の数量-~literalである場合( `5^v や `20%^v など)
11601161
1161-
指定d値が,そのまま算出d値になる(特に,百分率が何かに対し解決されることは決してない)。
1162+
指定されたとおりになる
1163+
(特に,百分率が何かに対し解決されることは決してない)。
11621164
11631165
If the specified value is any other numeric literal (such as 5 or 20%), the computed value is as specified. (In particular, percentages are never resolved against anything.)
11641166
</li>
@@ -1192,7 +1194,8 @@ <h3 title="Computed Value-Time Behavior">2.4. 算出d値の時点の挙動</h3>
11921194
<dt>`ident^t 【`参照@#_ident$】</dt>
11931195
<dt>`*^l</dt>
11941196
<dd>
1195-
指定d値がそのまま算出d値になる。
1197+
算出d値は、
1198+
指定されたとおりになる。
11961199
11971200
For "&lt;custom-ident&gt;", ident, or "*" values, the computed value is as specified.
11981201
</dd>
@@ -1202,14 +1205,13 @@ <h3 title="Computed Value-Time Behavior">2.4. 算出d値の時点の挙動</h3>
12021205
For "&lt;url&gt;" values, the computed value is one of the following:
12031206
</dt>
12041207
<dd>
1205-
指定d値は相対~URLである場合、
1206-
算出d値は `css3-values$r に従って絶対~URLに解決した結果になる。
1208+
算出d値は、
1209+
指定d値に応じて
1210+
⇒#
1211+
相対~URLである場合, `css3-values$r に従って絶対~URLに解決した結果になる/
1212+
他の場合,指定されたとおりになる
12071213
12081214
if the URL is a relative URL, the computed value is the resolved absolute URL as described in [css3-values].
1209-
</dd>
1210-
<dd>
1211-
他の場合、
1212-
指定d値がそのまま算出d値になる。
12131215
12141216
otherwise, the computed value is as specified.
12151217
</dd>
@@ -1316,7 +1318,7 @@ <h3 title="Computed Value-Time Behavior">2.4. 算出d値の時点の挙動</h3>
13161318
<dd>
13171319
<p>
13181320
算出d値は、
1319-
~listを成す各~項に 基底~型~用の算出d値の規則を適用した結果になる。
1321+
~listを成す各~項に基底~型~用の算出d値の規則を適用した結果になる。
13201322
13211323
For values with multipliers, the computed value is a list of the computed values of the base type.
13221324
</dd>
@@ -1420,7 +1422,7 @@ <h3 title="Conditional Rules">2.6. 条件付き規則</h3>
14201422

14211423
<p class="example">
14221424
例えば,~custom~prop `--foo^p が
1423-
`syntax: "&lt;color&gt;";^c
1425+
<code class="css">`syntax$d: `&lt;color&gt;^l;</code>
14241426
を伴って登録された場合でも、
14251427
<code class="css">`supports$at (`--foo^p: `1em^v) {...}</code>
14261428
の様な規則は `真^i に評価され,その中の~styleは適用される
@@ -1436,7 +1438,7 @@ <h3 title="Substitution via var()">2.7. `var^f を介した代入</h3>
14361438

14371439
<p>
14381440
`登録-済み~custom~prop$の値は、
1439-
未登録な~custom~propと同様に,別の値の中の `var$f 関数へ代入され得る
1441+
未登録な~custom~propと同様に,別の値の中の `var$f 関数へ`代入-$され得る
14401442
しかしながら,登録-済み~custom~propは、
14411443
その`算出d値として代入される@#calculation-of-computed-values$
14421444
— その値を生産するときに利用される元の~token列ではなく。
@@ -1620,7 +1622,7 @@ <h3 title="Shadow DOM">2.8. ~shadow~DOM</h3>
16201622

16211623
<p>
16221624
しかしながら,
1623-
当の登録を視野を絞らない理由もある
1625+
当の登録を視野~付きにしない理由もある
16241626
16251627
`~custom~prop$は、
16261628
~componentの`中へ^em~dataを~pipeするためにも利用される
@@ -1791,7 +1793,7 @@ <h3 title="The syntax Descriptor">3.1. `syntax^d 記述子</h3>
17911793
◎表終
17921794

17931795
<p>
1794-
`property$at 規則で表現される`~custom~prop登録$の構文を指定する。
1796+
当の `property$at 規則が表現する`~custom~prop登録$の構文を指定する。
17951797
それは、
17961798
`算出d値$の時点で~propの値がどう構文解析されるかを制御する。
17971799
@@ -1802,18 +1804,25 @@ <h3 title="The syntax Descriptor">3.1. `syntax^d 記述子</h3>
18021804
`property$at 規則が妥当になるためには、
18031805
この記述子が要求される。
18041806
欠落な場合、
1805-
`property$at 規則は無効になる
1807+
当の規則は無効になる
18061808
18071809
The syntax descriptor is required for the @property rule to be valid; if it’s missing, the @property rule is invalid.
18081810
</p>
18091811

18101812
<p>
18111813
供された文字列が妥当な`構文~文字列$でない場合(`構文~定義を消費する$( その文字列 ) の結果が `失敗^i になる場合)、
1812-
記述子は無効になり,無視されるモノトスル。
1814+
この記述子†は無効になり,無視されるモノトスル。
18131815
18141816
If the provided string is not a valid syntax string (if it returns failure when consume a syntax definition is called on it), the descriptor is invalid and must be ignored.
18151817
</p>
18161818

1819+
<p class="trans-note">【†
1820+
本当は、
1821+
当の `property$at 規則が無効になるべきかもしれない。
1822+
記述子だけが無視されるとすると,
1823+
`initial-value$d 記述子にて述べられる `property^at 規則の妥当性に関する条件がきちんと定義されなくなるので。
1824+
</p>
1825+
18171826
</section>
18181827
<section id="inherits-descriptor">
18191828
<h3 title="The inherits Descriptor">3.2. `inherits^d 記述子</h3>
@@ -1827,7 +1836,7 @@ <h3 title="The inherits Descriptor">3.2. `inherits^d 記述子</h3>
18271836
◎表終
18281837

18291838
<p>
1830-
`property$at 規則で表現される`~custom~prop登録$の継承-~flagを指定する。
1839+
当の `property$at 規則が表現する`~custom~prop登録$の継承-~flagを指定する。
18311840
それは、
18321841
~propが既定で継承されるかどうかを制御する。
18331842
@@ -1838,7 +1847,7 @@ <h3 title="The inherits Descriptor">3.2. `inherits^d 記述子</h3>
18381847
`property$at 規則が妥当になるためには、
18391848
この記述子が要求される。
18401849
欠落な場合、
1841-
`property$at 規則は無効になる
1850+
当の規則は無効になる
18421851
18431852
The inherits descriptor is required for the @property rule to be valid; if it’s missing, the @property rule is invalid.
18441853
</p>
@@ -1856,7 +1865,7 @@ <h3 title="The initial-value Descriptor">3.3. `initial-value^d 記述子</h3>
18561865
◎表終
18571866

18581867
<p>
1859-
`property$at 規則で表現される`~custom~prop登録$の初期~値を指定する。
1868+
当の `property$at 規則で表現される`~custom~prop登録$の初期~値を指定する。
18601869
それは、
18611870
~propの`初期~値$を制御する。
18621871
@@ -1874,7 +1883,7 @@ <h3 title="The initial-value Descriptor">3.3. `initial-value^d 記述子</h3>
18741883

18751884
<p>
18761885
`syntax$d 記述子の値が`全称~構文~定義$でない場合、
1877-
`property$at 規則が妥当になるためには,
1886+
当の `property$at 規則が妥当になるためには,
18781887
~AND↓ が満たされなければナラナイ:
18791888
18801889
Otherwise, if the value of the syntax descriptor is not the universal syntax definition, the following conditions must be met for the @property rule to be valid:
@@ -1901,7 +1910,7 @@ <h3 title="The initial-value Descriptor">3.3. `initial-value^d 記述子</h3>
19011910

19021911
<p>
19031912
上のいずれかの条件が満たされない場合、
1904-
`property$at 規則は無効になる。
1913+
当の `property$at 規則は無効になる。
19051914
19061915
If the above conditions are not met, the @property rule is invalid.
19071916
</p>
@@ -1978,7 +1987,7 @@ <h3 title="The registerProperty() Function">4.1. `registerProperty()^m ~method</
19781987
`~custom~propを登録する@
19791988
~algoは、
19801989
所与の
1981-
( 文字列 %名前, 文字列 %構文, 真偽値 %継承するか, 文字列 %初期~値 )
1990+
( 文字列 %名前, 文字列 %構文, 真偽値 %継承するか, [ ε / 文字列 %初期~値 )
19821991
に対し:
19831992
19841993
To register a custom property with name being a string, and optionally syntax being a string, inherits being a boolean, and initialValue being a string, execute these steps:
@@ -2179,11 +2188,11 @@ <h3 title="The registerProperty() Function">4.1. `registerProperty()^m ~method</
21792188
<p>
21802189
~custom~propの登録は、
21812190
いかなる仕方でも,`~cascade$に影響しないモノトスル。
2182-
登録された~prop用に指定した構文を問わず
2183-
`~custom~prop$は,構文解析-時点では 通常通りほぼ何でも受容するように構文解析される。
2184-
しかしながら,`登録-済み~custom~prop$用の`指定d値$が 登録した構文に違反する場合
2185-
~propは`算出d値の時点で無効$になる
2186-
(したがって,登録した初期~値に設定し直される)。
2191+
`登録-済み~custom~prop$ %~prop 用に指定した構文を問わず
2192+
%~prop は,構文解析-時点では 通常通りほぼ何でも受容するように構文解析される。
2193+
しかしながら, %~prop`指定d値$が当の構文に違反する場合
2194+
%~prop は`算出d値の時点で無効$になる
2195+
(したがって, %~prop の初期~値に設定し直される)。
21872196
21882197
Registering a custom property must not affect the cascade in any way. Regardless of what syntax is specified for a registered property, at parse time it is still parsed as normal for a custom property, accepting nearly anything. If the specified value for a registered custom property violates the registered syntax, however, the property becomes invalid at computed-value time (and thus resets to the registered initial value).
21892198
</p>
@@ -2820,20 +2829,26 @@ <h4 title="Definitions">5.4.1. 定義</h4>
28202829
<section id="consume-syntax-definition">
28212830
<h4 title="Consume a Syntax Definition">5.4.2. 構文~定義を消費する</h4>
28222831

2823-
<div class="algo">
28242832
<p>
28252833
この節では、
2826-
`構文~定義を消費する@
2827-
方法を述べる。
2834+
`構文~定義を消費する$方法を述べる。
28282835
それは、
2829-
所与の
2830-
( `文字列$ %文字列 )
2831-
から[
2832-
`構文~成分$たちが成す~listを伴う`構文~定義$ / `全称~構文~定義$
2833-
]を生産する:
2836+
所与の文字列から[
2837+
`構文~成分$たちが成す~listを伴う`構文~定義$/`全称~構文~定義$
2838+
]を生産する。
28342839
28352840
This section describes how to consume a syntax definition from a string string. It either produces a syntax definition with a list of syntax components, or the universal syntax definition.
28362841
</p>
2842+
2843+
<div class="algo">
2844+
<p>
2845+
`構文~定義を消費する@
2846+
~algoは、
2847+
所与の
2848+
( `文字列$ %文字列 )
2849+
に対し:
2850+
2851+
</p>
28372852
<ol>
28382853
<li>
28392854
%文字列 から`前後の~ASCII空白~列を剥ぐ$
@@ -2947,7 +2962,7 @@ <h4 title="Consume a Syntax Component">5.4.3. 構文~成分を消費する</h4>
29472962

29482963
<div class="algo">
29492964
<p>
2950-
`符号位置$ %~stream から
2965+
`符号位置$たちが成す~stream %~stream から
29512966
`構文~成分を消費する@
29522967
~algoは:
29532968
@@ -3081,7 +3096,7 @@ <h4 title="Consume a Data Type Name">5.4.4. ~data型~名を消費する</h4>
30813096

30823097
<div class="algo">
30833098
<p>
3084-
`符号位置$の~streamから
3099+
`符号位置$たちが成す~stream %~stream から
30853100
`~data型~名を消費する@
30863101
~algoは:
30873102

0 commit comments

Comments
 (0)