Skip to content

Commit 27566ea

Browse files
committed
[css3-syntax] Forgot that rect() uses the unitless length quirk.
--HG-- extra : rebase_source : a3bb570494a66bec0d855961c5e6ede179f07148
1 parent 963d518 commit 27566ea

2 files changed

Lines changed: 39 additions & 7 deletions

File tree

css3-syntax/Overview.html

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2670,7 +2670,8 @@ <h4 id=consume-a-function><span class=secno>3.6.16. </span> <dfn
26702670

26712671
<p> Create a function with a name equal to the value of the <a
26722672
href="#current-input-token"><i>current input token</i></a>. Create an
2673-
argument, called the <i>current argument</i>, which is initially empty.
2673+
argument, called the <dfn id=current-argument>current argument</dfn>,
2674+
which is initially empty.
26742675

26752676
<p> Repeatedly consume the <a href="#next-input-token"><i>next input
26762677
token</i></a> and process it as follows:
@@ -2680,18 +2681,32 @@ <h4 id=consume-a-function><span class=secno>3.6.16. </span> <dfn
26802681

26812682
<dt>) token
26822683

2683-
<dd> Append the <i>current argument</i> to the function's argument list.
2684-
Return the function.
2684+
<dd> Append the <a href="#current-argument"><i>current argument</i></a> to
2685+
the function's argument list. Return the function.
26852686

26862687
<dt>delim token with the value ","
26872688

2688-
<dd> Append the <i>current argument</i> to the function's argument list.
2689-
Create a new <i>current argument</i> which is initially empty.
2689+
<dd> Append the <a href="#current-argument"><i>current argument</i></a> to
2690+
the function's argument list. Create a new <a
2691+
href="#current-argument"><i>current argument</i></a> which is initially
2692+
empty.
2693+
2694+
<dt>number token
2695+
2696+
<dd> If the document is in quirks mode and the function's name is "rect",
2697+
<a href="#consume-a-primitive-with-the-unitless-le0"><i>consume a
2698+
primitive with the unitless length quirk</i></a> and append the returned
2699+
value to the value fo the <a href="#current-argument"><i>current
2700+
argument</i></a>.
2701+
<p> Otherwise, <a href="#consume-a-primitive0"><i>consume a
2702+
primitive</i></a> and append the returned value to the value of the <a
2703+
href="#current-argument"><i>current argument</i></a>.
26902704

26912705
<dt>anything else
26922706

26932707
<dd> <a href="#consume-a-primitive0"><i>Consume a primitive</i></a> and
2694-
append the returned value to the value of the <i>current argument</i>.
2708+
append the returned value to the value of the <a
2709+
href="#current-argument"><i>current argument</i></a>.
26952710
</dl>
26962711

26972712
<h4 id=switch-to-the-current-rules-content-mode><span class=secno>3.6.17.
@@ -3067,6 +3082,9 @@ <h2 class=no-num id=index> Index</h2>
30673082
<li>Consume a simple block, <a href="#consume-a-simple-block0"
30683083
title="Consume a simple block"><strong>3.6.15.</strong></a>
30693084

3085+
<li>current argument, <a href="#current-argument"
3086+
title="current argument"><strong>3.6.16.</strong></a>
3087+
30703088
<li>current block, <a href="#current-block"
30713089
title="current block"><strong>3.6.15.</strong></a>
30723090

css3-syntax/Overview.src.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2699,7 +2699,7 @@ <h4>
26992699
<p>
27002700
Create a function with a name equal to the value of the <i>current input token</i>.
27012701
Create an argument,
2702-
called the <i>current argument</i>,
2702+
called the <dfn>current argument</dfn>,
27032703
which is initially empty.
27042704

27052705
<p>
@@ -2717,6 +2717,20 @@ <h4>
27172717
Append the <i>current argument</i> to the function's argument list.
27182718
Create a new <i>current argument</i> which is initially empty.
27192719

2720+
<dt>number token
2721+
<dd>
2722+
If the document is in quirks mode
2723+
and the function's name is "rect",
2724+
<i>consume a primitive with the unitless length quirk</i>
2725+
and append the returned value
2726+
to the value fo the <i>current argument</i>.
2727+
2728+
<p>
2729+
Otherwise,
2730+
<i>consume a primitive</i>
2731+
and append the returned value
2732+
to the value of the <i>current argument</i>.
2733+
27202734
<dt>anything else
27212735
<dd>
27222736
<i>Consume a primitive</i>

0 commit comments

Comments
 (0)