Skip to content

Commit

Permalink
[css-properties-values-api] Disallow leading '|' in syntax strings. (#…
Browse files Browse the repository at this point in the history
…862)

The current text allows syntax strings like "|<color>", which seems pretty
pointless.
  • Loading branch information
andruud authored and tabatkins committed Mar 6, 2019
1 parent 5357e78 commit 13e5ec9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion css-properties-values-api/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,15 @@ Parsing the syntax string {#parsing-syntax}
otherwise, return failure.

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

If |descriptor|’s [=list/size=] is zero, return failure.

: anything else
:: <a>Reconsume the current input code point</a> in |stream|.
<a>Consume a syntax component</a> from |stream|.
Expand Down

0 comments on commit 13e5ec9

Please sign in to comment.