diff --git a/css-properties-values-api/Overview.bs b/css-properties-values-api/Overview.bs index 6d7287a1..b78b881b 100644 --- a/css-properties-values-api/Overview.bs +++ b/css-properties-values-api/Overview.bs @@ -586,33 +586,24 @@ Parsing the syntax string {#parsing-syntax} preprocessed as specified in [[css-syntax-3]]. Let |descriptor| be an initially empty [=list=] of syntax components. - 5. Repeatedly consume the next input code point from |stream|: + 5. Consume a syntax component from |stream|. + If failure was returned, + return failure; + otherwise, + [=list/append=] the returned value to |descriptor|. - : whitespace - :: Do nothing. + Consume as much whitespace as possible from |stream|. + Consume the next input code point in |stream|: : EOF - :: If |descriptor|’s [=list/size=] is greater than zero, - return |descriptor|; - otherwise, return failure. + :: return |descriptor|. : U+007C VERTICAL LINE (|) - :: If |descriptor|’s [=list/size=] is greater than zero, - consume a syntax component 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 - :: Reconsume the current input code point in |stream|. - Consume a syntax component from |stream|. - If failure was returned, - return failure; - otherwise, - [=list/append=] the returned value to |descriptor|. + :: Repeat step 5. + + : Anything else: + :: Return failure. + ### Consume a syntax component ### {#consume-syntax-component} @@ -625,7 +616,7 @@ Parsing the syntax string {#parsing-syntax} Let |component| be a new syntax component with its |name| and |multiplier| initially empty. - Consume the next input code point |stream|: + Consume the next input code point in |stream|: : U+003C LESS-THAN SIGN (<) :: Consume a data type name from |stream|.