1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 17:28:10 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Sam Atkins 8fd4678e79 LibWeb: Parse comma-separated lists for most background properties
We now can parse lists of values for these properties:
- `background-attachment`
- `background-clip`
- `background-image`
- `background-origin`
- `background-position`
- `background-repeat`
- `background-size`

This uses two new Parser methods:
`parse_simple_comma_separated_value_list()` for the simple case when
each value is parsed from a single token; and
`parse_comma_separated_value_list()` which takes a lambda for when
parsing each value is more involved.

This also means that any unconsumed tokens at the end will make the
parsing fail as it should, where previously we just ignored them.
2021-11-17 22:20:01 +01:00
..
DeclarationOrAtRule.h LibWeb: Add accessors to CSS::DeclarationOrAtRule 2021-07-11 23:19:56 +02:00
Parser.cpp LibWeb: Parse comma-separated lists for most background properties 2021-11-17 22:20:01 +01:00
Parser.h LibWeb: Parse comma-separated lists for most background properties 2021-11-17 22:20:01 +01:00
StyleBlockRule.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StyleComponentValueRule.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StyleDeclarationRule.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
StyleFunctionRule.h LibWeb: Add missing headers 2021-10-06 23:52:40 +01:00
StyleRule.h Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
StyleRules.cpp Everywhere: Use my shiny new serenityos.org email :^) 2021-09-03 12:22:36 +02:00
Token.cpp LibWeb: Make CSS 'An+B' parsing spec-compliant 2021-07-31 00:18:11 +02:00
Token.h LibWeb: Convert NumberType::Integer to i64 instead of i32 2021-11-04 23:45:07 +01:00
Tokenizer.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Tokenizer.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00