mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibWeb/CSS: Sort text-decoration-line values in spec order
This wins us 49 WPT subtest passes! :^)
This commit is contained in:
parent
fa1e102f3c
commit
671d3e8a48
Notes:
github-actions[bot]
2024-11-30 10:02:36 +00:00
Author: https://github.com/AtkinsSJ
Commit: 671d3e8a48
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2638
3 changed files with 59 additions and 54 deletions
|
@ -6384,6 +6384,11 @@ RefPtr<CSSStyleValue> Parser::parse_text_decoration_line_value(TokenStream<Compo
|
|||
|
||||
if (style_values.is_empty())
|
||||
return nullptr;
|
||||
|
||||
quick_sort(style_values, [](auto& left, auto& right) {
|
||||
return *keyword_to_text_decoration_line(left->to_keyword()) < *keyword_to_text_decoration_line(right->to_keyword());
|
||||
});
|
||||
|
||||
return StyleValueList::create(move(style_values), StyleValueList::Separator::Space);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue