LibWeb: Resolve CSS list-style from value list

This resolves the three sub-properties, appearing in any order:

- list-style-image
- list-style-position
- list-style-type

Added `list-style-position` values to support this, though they are not
yet used in rendering.
This commit is contained in:
Sam Atkins 2021-07-20 16:11:19 +01:00 committed by Andreas Kling
commit a44d7670ab
Notes: sideshowbarker 2024-07-18 08:31:12 +09:00
3 changed files with 99 additions and 6 deletions

View file

@ -1621,7 +1621,6 @@ RefPtr<StyleValue> Parser::parse_css_value(PropertyID property_id, TokenStream<S
RefPtr<StyleValue> Parser::parse_css_value(ParsingContext const& context, PropertyID property_id, StyleComponentValueRule const& component_value)
{
dbgln_if(CSS_PARSER_TRACE, "Parser::parse_css_value '{}'", component_value.to_debug_string());
// FIXME: Figure out if we still need takes_integer_value, and if so, move this information
// into Properties.json.
auto takes_integer_value = [](PropertyID property_id) -> bool {