Skip to content

Commit 24aae81

Browse files
committed
[css3-syntax] Specify that an+b only uses integers.
--HG-- extra : rebase_source : 5eb70fc37b94aa7ea0d14759b31c8898998cb1ca
1 parent 2481dae commit 24aae81

2 files changed

Lines changed: 16 additions & 15 deletions

File tree

css3-syntax/Overview.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3962,17 +3962,18 @@ <h3 id=parse-anb-notation><span class=secno>6.7. </span> <dfn
39623962
<var>step</var> to 1. Otherwise, if the first string consists solely of a
39633963
single U+002B PLUS SIGN (+) or U+002D HYPHEN-MINUS (-), set the
39643964
<var>step</var> to 1 or -1, respectively. Otherwise, attempt to interpret
3965-
the first string as a base-10 number. If the attempt succeeds, set the
3966-
<var>step</var> to that number. Otherwise, this is a <i>parse error</i>;
3967-
return a syntax error. If the second string is empty, set the
3968-
<var>offset</var> to 0. Otherwise, attempt to interpret the second string
3969-
as a base-10 number. If the attempt succeeds, set the <var>offset</var> to
3970-
that number. Otherwise, this is a <i>parse error</i>; return a syntax
3971-
error.
3965+
the first string as a base-10 number. If the attempt succeeds and produces
3966+
an integer, set the <var>step</var> to that integer. Otherwise, this is a
3967+
<i>parse error</i>; return a syntax error. If the second string is empty,
3968+
set the <var>offset</var> to 0. Otherwise, attempt to interpret the second
3969+
string as a base-10 number. If the attempt succeeds and produces an
3970+
integer, set the <var>offset</var> to that integer. Otherwise, this is a
3971+
<i>parse error</i>; return a syntax error.
39723972

39733973
<p> Otherwise, attempt to interpret <var>repr</var> as a base-10 number. If
3974-
the attempt succeeds, set the <var>offset</var> to that number. Otherwise,
3975-
this is a <i>parse error</i>; return a syntax error.
3974+
the attempt succeeds and produces an integer, set the <var>offset</var> to
3975+
that integer. Otherwise, this is a <i>parse error</i>; return a syntax
3976+
error.
39763977

39773978
<h2 id=serialization><span class=secno>7. </span>Serialization</h2>
39783979

css3-syntax/Overview.src.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3520,22 +3520,22 @@ <h3>
35203520
U+002D HYPHEN-MINUS (-),
35213521
set the <var>step</var> to 1 or -1, respectively.
35223522
Otherwise, attempt to interpret the first string as a base-10 number.
3523-
If the attempt succeeds,
3524-
set the <var>step</var> to that number.
3523+
If the attempt succeeds and produces an integer,
3524+
set the <var>step</var> to that integer.
35253525
Otherwise, this is a <i>parse error</i>;
35263526
return a syntax error.
35273527
If the second string is empty,
35283528
set the <var>offset</var> to 0.
35293529
Otherwise, attempt to interpret the second string as a base-10 number.
3530-
If the attempt succeeds,
3531-
set the <var>offset</var> to that number.
3530+
If the attempt succeeds and produces an integer,
3531+
set the <var>offset</var> to that integer.
35323532
Otherwise, this is a <i>parse error</i>;
35333533
return a syntax error.
35343534

35353535
<p>
35363536
Otherwise, attempt to interpret <var>repr</var> as a base-10 number.
3537-
If the attempt succeeds,
3538-
set the <var>offset</var> to that number.
3537+
If the attempt succeeds and produces an integer,
3538+
set the <var>offset</var> to that integer.
35393539
Otherwise, this is a <i>parse error</i>;
35403540
return a syntax error.
35413541

0 commit comments

Comments
 (0)