Skip to content

Commit 4dc6c0c

Browse files
committed
[css-syntax] Just move the scinot state up, next to number-rest, as it's now properly a number state.
1 parent ffddcfc commit 4dc6c0c

2 files changed

Lines changed: 74 additions & 74 deletions

File tree

css-syntax/Overview.html

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,12 @@ <h2 class="no-num no-toc" id=contents> Table of contents</h2>
220220
<li><a href="#number-rest-state"><span class=secno>4.4.10. </span>
221221
Number-rest state</a>
222222

223-
<li><a href="#dimension-state"><span class=secno>4.4.11. </span>
224-
Dimension state</a>
225-
226-
<li><a href="#sci-notation-state"><span class=secno>4.4.12. </span>
223+
<li><a href="#sci-notation-state"><span class=secno>4.4.11. </span>
227224
Sci-notation state</a>
228225

226+
<li><a href="#dimension-state"><span class=secno>4.4.12. </span>
227+
Dimension state</a>
228+
229229
<li><a href="#url-state"><span class=secno>4.4.13. </span> URL
230230
state</a>
231231

@@ -2172,7 +2172,40 @@ <h4 id=number-rest-state><span class=secno>4.4.10. </span> <dfn
21722172
input character</i></a>.
21732173
</dl>
21742174

2175-
<h4 id=dimension-state><span class=secno>4.4.11. </span> <dfn
2175+
<h4 id=sci-notation-state><span class=secno>4.4.11. </span> <dfn
2176+
id=sci-notation-state0>Sci-notation state</dfn></h4>
2177+
2178+
<p> Set the number token's type flag to "number".
2179+
2180+
<p> Consume the <a href="#next-input-character"><i>next input
2181+
character</i></a>.
2182+
2183+
<dl>
2184+
<dt><a href="#digit"><i>digit</i></a>
2185+
2186+
<dd> Append the <a href="#current-input-character"><i>current input
2187+
character</i></a> to the number token's representation. Remain in this
2188+
state.
2189+
2190+
<dt>anything else
2191+
2192+
<dd> Let <var>base</var> be the result of interpreting the portion of the
2193+
number token's representation preceding the U+0045 LATIN CAPITAL LETTER E
2194+
(E) or U+0065 LATIN SMALL LETTER E (e) as a base-10 number.
2195+
<p> Let <var>power</var> be the result of interpreting the portion of the
2196+
number token's representation following the U+0045 LATIN CAPITAL LETTER
2197+
E (E) or U+0065 LATIN SMALL LETTER E (e) as a base-10 number.
2198+
2199+
<p> Set the number token's value to <code><var>base</var> *
2200+
10<sup><var>power</var></sup></code>. If the number token's value is not
2201+
an integer, set the number token's type flag to "number". Emit the
2202+
number token. Switch to the <a href="#data-state0"><i>data
2203+
state</i></a>. <a
2204+
href="#reconsume-the-current-input-character"><i>Reconsume the current
2205+
input character</i></a>.
2206+
</dl>
2207+
2208+
<h4 id=dimension-state><span class=secno>4.4.12. </span> <dfn
21762209
id=dimension-state0>Dimension state</dfn></h4>
21772210
<!--
21782211
This state is currently always entered with a dimension token
@@ -2212,39 +2245,6 @@ <h4 id=dimension-state><span class=secno>4.4.11. </span> <dfn
22122245
input character</i></a>.
22132246
</dl>
22142247

2215-
<h4 id=sci-notation-state><span class=secno>4.4.12. </span> <dfn
2216-
id=sci-notation-state0>Sci-notation state</dfn></h4>
2217-
2218-
<p> Set the number token's type flag to "number".
2219-
2220-
<p> Consume the <a href="#next-input-character"><i>next input
2221-
character</i></a>.
2222-
2223-
<dl>
2224-
<dt><a href="#digit"><i>digit</i></a>
2225-
2226-
<dd> Append the <a href="#current-input-character"><i>current input
2227-
character</i></a> to the number token's representation. Remain in this
2228-
state.
2229-
2230-
<dt>anything else
2231-
2232-
<dd> Let <var>base</var> be the result of interpreting the portion of the
2233-
number token's representation preceding the U+0045 LATIN CAPITAL LETTER E
2234-
(E) or U+0065 LATIN SMALL LETTER E (e) as a base-10 number.
2235-
<p> Let <var>power</var> be the result of interpreting the portion of the
2236-
number token's representation following the U+0045 LATIN CAPITAL LETTER
2237-
E (E) or U+0065 LATIN SMALL LETTER E (e) as a base-10 number.
2238-
2239-
<p> Set the number token's value to <code><var>base</var> *
2240-
10<sup><var>power</var></sup></code>. If the number token's value is not
2241-
an integer, set the number token's type flag to "number". Emit the
2242-
number token. Switch to the <a href="#data-state0"><i>data
2243-
state</i></a>. <a
2244-
href="#reconsume-the-current-input-character"><i>Reconsume the current
2245-
input character</i></a>.
2246-
</dl>
2247-
22482248
<h4 id=url-state><span class=secno>4.4.13. </span> <dfn id=url-state0>URL
22492249
state</dfn></h4>
22502250

@@ -4248,7 +4248,7 @@ <h2 class=no-num id=index> Index</h2>
42484248
<li>digit, <a href="#digit" title="section 4.3."><strong>4.3.</strong></a>
42494249

42504250
<li>Dimension state, <a href="#dimension-state0"
4251-
title="section 4.4.11."><strong>4.4.11.</strong></a>
4251+
title="section 4.4.12."><strong>4.4.12.</strong></a>
42524252

42534253
<li>Double-quote-string state, <a href="#double-quote-string-state0"
42544254
title="section 4.4.2."><strong>4.4.2.</strong></a>
@@ -4364,7 +4364,7 @@ <h2 class=no-num id=index> Index</h2>
43644364
title="section 7.2."><strong>7.2.</strong></a>
43654365

43664366
<li>Sci-notation state, <a href="#sci-notation-state0"
4367-
title="section 4.4.12."><strong>4.4.12.</strong></a>
4367+
title="section 4.4.11."><strong>4.4.11.</strong></a>
43684368

43694369
<li>Set the unicode-range token's range, <a
43704370
href="#set-the-unicode-range-tokens-range0"

css-syntax/Overview.src.html

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,40 @@ <h4>
14551455
<i>Reconsume the current input character</i>.
14561456
</dl>
14571457

1458+
<h4>
1459+
<dfn>Sci-notation state</dfn></h4>
1460+
1461+
<p>
1462+
Set the number token's type flag to "number".
1463+
1464+
<p>
1465+
Consume the <i>next input character</i>.
1466+
1467+
<dl>
1468+
<dt><i>digit</i>
1469+
<dd>
1470+
Append the <i>current input character</i>
1471+
to the number token's representation.
1472+
Remain in this state.
1473+
1474+
<dt>anything else
1475+
<dd>
1476+
Let <var>base</var> be the result of interpreting the portion of the number token's representation
1477+
preceding the U+0045 LATIN CAPITAL LETTER E (E) or U+0065 LATIN SMALL LETTER E (e)
1478+
as a base-10 number.
1479+
<p>
1480+
Let <var>power</var> be the result of interpreting the portion of the number token's representation
1481+
following the U+0045 LATIN CAPITAL LETTER E (E) or U+0065 LATIN SMALL LETTER E (e)
1482+
as a base-10 number.
1483+
<p>
1484+
Set the number token's value to <code><var>base</var> * 10<sup><var>power</var></sup></code>.
1485+
If the number token's value is not an integer,
1486+
set the number token's type flag to "number".
1487+
Emit the number token.
1488+
Switch to the <i>data state</i>.
1489+
<i>Reconsume the current input character</i>.
1490+
</dl>
1491+
14581492
<h4>
14591493
<dfn>Dimension state</dfn></h4>
14601494

@@ -1498,40 +1532,6 @@ <h4>
14981532
<i>Reconsume the current input character</i>.
14991533
</dl>
15001534

1501-
<h4>
1502-
<dfn>Sci-notation state</dfn></h4>
1503-
1504-
<p>
1505-
Set the number token's type flag to "number".
1506-
1507-
<p>
1508-
Consume the <i>next input character</i>.
1509-
1510-
<dl>
1511-
<dt><i>digit</i>
1512-
<dd>
1513-
Append the <i>current input character</i>
1514-
to the number token's representation.
1515-
Remain in this state.
1516-
1517-
<dt>anything else
1518-
<dd>
1519-
Let <var>base</var> be the result of interpreting the portion of the number token's representation
1520-
preceding the U+0045 LATIN CAPITAL LETTER E (E) or U+0065 LATIN SMALL LETTER E (e)
1521-
as a base-10 number.
1522-
<p>
1523-
Let <var>power</var> be the result of interpreting the portion of the number token's representation
1524-
following the U+0045 LATIN CAPITAL LETTER E (E) or U+0065 LATIN SMALL LETTER E (e)
1525-
as a base-10 number.
1526-
<p>
1527-
Set the number token's value to <code><var>base</var> * 10<sup><var>power</var></sup></code>.
1528-
If the number token's value is not an integer,
1529-
set the number token's type flag to "number".
1530-
Emit the number token.
1531-
Switch to the <i>data state</i>.
1532-
<i>Reconsume the current input character</i>.
1533-
</dl>
1534-
15351535
<h4>
15361536
<dfn>URL state</dfn></h4>
15371537

0 commit comments

Comments
 (0)