mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
The new method is Parser::parse_all_as_single_none_value(), which has a few advantages: 1. There's no need for user code to manually create a StyleValue. 2. It consumes tokens so that doesn't have to be done manually. 3. Whitespace before or after the `none` is consumed correctly. It does mean we create and then discard a `none` StyleValue in a couple of places, namely parsing for `grid-*` properties. We may or may not want to migrate those to returning the IdentifierStyleValue instead.
330 KiB
330 KiB