[css-properties-values-api] Fix syntax string parsing to not treat whitespace between components the same as pipes.#894
Conversation
|
r? @andruud |
|
Oh, nice, thanks @emilio <3 I'm not actually an editor though, so I can't merge it. --> @tabatkins (It would be nice to have assign-review-to-people privileges, so I didn't have to ping people in a comment, like a commoner, djeez). |
|
I don't seem to have merge access to this repo, so if you could do that @tabatkins it'd be awesome. Thanks! |
|
@emilio Just discovered that this allows a leading "|", e.g. "|foo" is a valid syntax. |
|
Let's rethink step 5 as a whole. Drop the "repeatedly consume" thing and instead do: Step 5:
WDYT? |
|
Err, yes indeed it does. Or alternatively, also reconsume the current code-point even if it's |
|
Your algorithm also needs to skip trailing whitespace after parsing a component, otherwise you stop parsing |
|
Err, you did that already, should learn to read. Yeah, that looks good. |
…itespace between components the same as pipes. Fixes w3c#893
Fixes #893