Skip to content

Commit c9ed842

Browse files
committed
[css-properties-values-api] Fix syntax string parsing to not treat whitespace between components the same as pipes.
Fixes #893
1 parent 9637aba commit c9ed842

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

css-properties-values-api/Overview.bs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -596,18 +596,14 @@ Parsing the syntax string {#parsing-syntax}
596596
return |descriptor|;
597597
otherwise, return failure.
598598

599-
: U+007C VERTICAL LINE (|)
599+
: anything else
600600
:: If |descriptor|’s [=list/size=] is greater than zero,
601-
<a>consume a syntax component</a> from |stream|.
602-
If failure was returned,
601+
and the <a>current input code point</a> is not U+007C VERTICAL LINE (|),
603602
return failure;
604-
otherwise,
605-
[=list/append=] the returned value to |descriptor|.
606603

607-
If |descriptor|’s [=list/size=] is zero, return failure.
604+
If the <a>current input code point</a> is not U+007C VERTICAL LINE (|),
605+
<a>Reconsume the current input code point</a> in |stream|.
608606

609-
: anything else
610-
:: <a>Reconsume the current input code point</a> in |stream|.
611607
<a>Consume a syntax component</a> from |stream|.
612608
If failure was returned,
613609
return failure;

0 commit comments

Comments
 (0)