mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-13 12:31:51 +00:00
LibWeb: Allow parsing of <quirky-color>
This commit is contained in:
parent
2058fb1144
commit
2bb40b615a
Notes:
github-actions[bot]
2025-05-17 05:48:55 +00:00
Author: https://github.com/Calme1709 🔰
Commit: 2bb40b615a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4791
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 1154 additions and 1 deletions
|
@ -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; });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue