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
Let <var>start value</var> be the result of <a title="interpret a token as a hex integer">interpreting the <urange-codepoint> as a hex integer</a>.
2933
2932
Let <var>end value</var> be the negation of the result of <a title="interpret a token as a hex integer">interpreting the <negative-urange-codepoint> as a hex integer</a>.
2934
-
2935
-
2936
2933
: <code>u '+'<<urange-range>></code>
2937
2934
::
2938
2935
Split the <<urange-range>>’s representation (or representation + unit)
@@ -2945,10 +2942,10 @@ The <<urange>> type</h3>
2945
2942
To determine what codepoints the <<urange>> represents:
2946
2943
2947
2944
1. If <var>end value</var> is greater than the <a>maximum allowed code point</a>,
2948
-
set it to the <a>maximum allowed code point</a>.
2945
+
the <<urange>> is invalid and a syntax error.
2949
2946
2950
2947
2. If <var>start value</var> is greater than <var>end value</var>,
2951
-
the <<urange>>represents an empty range of codepoints.
2948
+
the <<urange>>is invalid and a syntax error.
2952
2949
2953
2950
3. Otherwise, the <<urange>> represents a contiguous range of codepoints from <var>start value</var> to <var>end value</var>, inclusive.
no whitespace can occur between any of the tokens.</p>
4243
4243
4244
-
<p>The <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> production represents a range of one or more contiguous unicode code points,
4244
+
<p>The <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> production represents a range of one or more contiguous unicode code points
4245
+
as a <var>start value</var> and an <var>end value</var>,
4245
4246
which are non-negative integers.
4246
4247
Each clause of the above grammar is interpreted as follows:</p>
<p><adata-link-type=dfnhref=#interpret-a-token-as-a-hex-integertitle="interpret a token as a hex integer">Interpret the <urange-codepoint> as a hex integer</a>.
4251
4252
Let <var>start value</var> and <var>end value</var> both be the returned value.</p>
<p>If the <aclass="production css" data-link-type=typehref=#typedef-urange-codepointtitle="<urange-codepoint>"><urange-codepoint></a> is specified,
<p>Let <var>start value</var> be the result of <adata-link-type=dfnhref=#interpret-a-token-as-a-hex-integertitle="interpret a token as a hex integer">interpreting the <urange-codepoint> as a hex integer</a>.
4266
4265
Let <var>end value</var> be the negation of the result of <adata-link-type=dfnhref=#interpret-a-token-as-a-hex-integertitle="interpret a token as a hex integer">interpreting the <negative-urange-codepoint> as a hex integer</a>.</p>
<p>To determine what codepoints the <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> represents:</p>
4279
4276
4280
4277
<ol><lidata-md=""><p>If <var>end value</var> is greater than the <adata-link-type=dfnhref=#maximum-allowed-code-pointtitle="maximum allowed code point">maximum allowed code point</a>,
4281
-
set it to the <adata-link-type=dfnhref=#maximum-allowed-code-pointtitle="maximum allowed code point">maximum allowed code point</a>.</p>
4278
+
the <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> is invalid and a syntax error.</p>
4282
4279
4283
4280
<lidata-md=""><p>If <var>start value</var> is greater than <var>end value</var>,
4284
-
the <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a>represents an empty range of codepoints.</p>
4281
+
the <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a>is invalid and a syntax error.</p>
4285
4282
4286
4283
<lidata-md=""><p>Otherwise, the <aclass="production css" data-link-type=typehref=#typedef-urangetitle="<urange>"><urange></a> represents a contiguous range of codepoints from <var>start value</var> to <var>end value</var>, inclusive.</p>
0 commit comments