LibWeb: Allow parsing of <quirky-color>

This commit is contained in:
Callum Law 2025-05-15 19:10:14 +12:00 committed by Tim Ledbetter
parent 2058fb1144
commit 2bb40b615a
Notes: github-actions[bot] 2025-05-17 05:48:55 +00:00
5 changed files with 1154 additions and 1 deletions

View file

@ -1936,7 +1936,7 @@ RefPtr<CSSStyleValue const> Parser::parse_color_value(TokenStream<ComponentValue
}
for (auto i = 1u; i < m_value_context.size() && quirky_color_allowed; i++) {
quirky_color_allowed = m_value_context[i].visit(
[](PropertyID const& property_id) { return property_has_quirk(property_id, Quirk::UnitlessLength); },
[](PropertyID const& property_id) { return property_has_quirk(property_id, Quirk::HashlessHexColor); },
[](FunctionContext const&) { return false; },
[](DescriptorContext const&) { return false; });
}