mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 15:51:33 +00:00

We should just restore the state when seeing whitespace and an unknown token like when we do when finding any other token a few lines below. This is not an issue for most callers (it's only an issue for clamp()) because the other callers use either `parse_comma_separated()` (for min/max), or `parse_nested_block()` (for parens / nested calc()). Both of those functions restrict the input in such a way that is_exhausted returns true (a few lines above) and thus we parse successfully. Differential Revision: https://phabricator.services.mozilla.com/D112681