You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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.)
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.
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:
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:
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).
<h4title="Consume a Syntax Definition">5.4.2. 構文~定義を消費する</h4>
2822
2831
2823
-
<divclass="algo">
2824
2832
<p>
2825
2833
この節では、
2826
-
`構文~定義を消費する@
2827
-
方法を述べる。
2834
+
`構文~定義を消費する$方法を述べる。
2828
2835
それは、
2829
-
所与の
2830
-
( `文字列$ %文字列 )
2831
-
から[
2832
-
`構文~成分$たちが成す~listを伴う`構文~定義$ / `全称~構文~定義$
2833
-
]を生産する:
2836
+
所与の文字列から[
2837
+
`構文~成分$たちが成す~listを伴う`構文~定義$/`全称~構文~定義$
2838
+
]を生産する。
2834
2839
◎
2835
2840
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.
2836
2841
</p>
2842
+
2843
+
<divclass="algo">
2844
+
<p>
2845
+
`構文~定義を消費する@
2846
+
~algoは、
2847
+
所与の
2848
+
( `文字列$ %文字列 )
2849
+
に対し:
2850
+
◎
2851
+
↑</p>
2837
2852
<ol>
2838
2853
<li>
2839
2854
%文字列 から`前後の~ASCII空白~列を剥ぐ$
@@ -2947,7 +2962,7 @@ <h4 title="Consume a Syntax Component">5.4.3. 構文~成分を消費する</h4>
2947
2962
2948
2963
<divclass="algo">
2949
2964
<p>
2950
-
`符号位置$の %~stream から
2965
+
`符号位置$たちが成す~stream %~stream から
2951
2966
`構文~成分を消費する@
2952
2967
~algoは:
2953
2968
◎
@@ -3081,7 +3096,7 @@ <h4 title="Consume a Data Type Name">5.4.4. ~data型~名を消費する</h4>
0 commit comments