Skip to content

Commit b288d47

Browse files
committed
Add the transform-function-whitespace state to handle the quirk.
1 parent 42936c0 commit b288d47

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

css3-syntax/Overview.src.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,13 +995,49 @@ <h4>
995995
with its value set to the identifer token's value.
996996
Switch to the <i>data state</i>.
997997

998+
<dt><i>whitespace</i>
999+
<dd>
1000+
If the <i>transform function whitespace</i> flag is set,
1001+
switch to the <i>transform-function-whitespace state</i>.
1002+
1003+
<p>
1004+
Otherwise,
1005+
emit the identifier token.
1006+
Switch to the <i>data state</i>.
1007+
Reconsume the <i>current input character</i>.
1008+
1009+
<dt>anything else
1010+
<dd>
1011+
Emit the identifier token.
1012+
Switch to the <i>data state</i>.
1013+
Reconsume the <i>current input character</i>.
1014+
</dl>
1015+
1016+
<h4>
1017+
<dfn>Transform-function-whitespace state</dfn></h4>
1018+
1019+
<p>
1020+
Consume the <i>next input character</i>.
1021+
1022+
<dl>
1023+
<dt><i>whitespace</i>
1024+
<dd>
1025+
Remain in this state.
1026+
1027+
<dt>U+0028 LEFT PARENTHESIS (()
1028+
<dd>
1029+
Emit a function token
1030+
with its value set to the identifer token's value.
1031+
Switch to the <i>data state</i>.
1032+
9981033
<dt>anything else
9991034
<dd>
10001035
Emit the identifier token.
10011036
Switch to the <i>data state</i>.
10021037
Reconsume the <i>current input character</i>.
10031038
</dl>
10041039

1040+
10051041
<h4>
10061042
<dfn>Number state</dfn></h4>
10071043

0 commit comments

Comments
 (0)