Skip to content

Commit 13e5ec9

Browse files
andruudtabatkins
authored andcommitted
[css-properties-values-api] Disallow leading '|' in syntax strings. (#862)
The current text allows syntax strings like "|<color>", which seems pretty pointless.
1 parent 5357e78 commit 13e5ec9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

css-properties-values-api/Overview.bs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,12 +597,15 @@ Parsing the syntax string {#parsing-syntax}
597597
otherwise, return failure.
598598

599599
: U+007C VERTICAL LINE (|)
600-
:: <a>Consume a syntax component</a> from |stream|.
600+
:: If |descriptor|’s [=list/size=] is greater than zero,
601+
<a>consume a syntax component</a> from |stream|.
601602
If failure was returned,
602603
return failure;
603604
otherwise,
604605
[=list/append=] the returned value to |descriptor|.
605606

607+
If |descriptor|’s [=list/size=] is zero, return failure.
608+
606609
: anything else
607610
:: <a>Reconsume the current input code point</a> in |stream|.
608611
<a>Consume a syntax component</a> from |stream|.

0 commit comments

Comments
 (0)