mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +00:00
LibWeb: Store parsed shorthands in canonical order
This commit is contained in:
parent
d127eb5117
commit
a6812e1005
Notes:
github-actions[bot]
2025-09-15 14:25:37 +00:00
Author: https://github.com/Calme1709
Commit: a6812e1005
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6190
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 5 additions and 5 deletions
|
@ -848,7 +848,7 @@ Parser::ParseErrorOr<NonnullRefPtr<StyleValue const>> Parser::parse_css_value(Pr
|
|||
|
||||
auto stream = TokenStream { component_values };
|
||||
|
||||
HashMap<UnderlyingType<PropertyID>, Vector<ValueComparingNonnullRefPtr<StyleValue const>>> assigned_values;
|
||||
OrderedHashMap<UnderlyingType<PropertyID>, Vector<ValueComparingNonnullRefPtr<StyleValue const>>> assigned_values;
|
||||
|
||||
while (stream.has_next_token() && !unassigned_properties.is_empty()) {
|
||||
auto property_and_value = parse_css_value_for_properties(unassigned_properties, stream);
|
||||
|
|
|
@ -2,15 +2,15 @@ Harness status: OK
|
|||
|
||||
Found 20 tests
|
||||
|
||||
15 Pass
|
||||
5 Fail
|
||||
17 Pass
|
||||
3 Fail
|
||||
Pass The serialization of border: 1px; border-top: 1px; should be canonical.
|
||||
Pass The serialization of border: 1px solid red; should be canonical.
|
||||
Pass The serialization of border: 1px red; should be canonical.
|
||||
Pass The serialization of border: red; should be canonical.
|
||||
Pass The serialization of border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px; border-image: none; should be canonical.
|
||||
Fail The serialization of border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px; should be canonical.
|
||||
Fail The serialization of border-top: 1px; border-right: 2px; border-bottom: 3px; border-left: 4px; should be canonical.
|
||||
Pass The serialization of border-top: 1px; border-right: 1px; border-bottom: 1px; border-left: 1px; should be canonical.
|
||||
Pass The serialization of border-top: 1px; border-right: 2px; border-bottom: 3px; border-left: 4px; should be canonical.
|
||||
Fail The serialization of border: 1px; border-top: 2px; should be canonical.
|
||||
Fail The serialization of border: 1px; border-top: 1px !important; should be canonical.
|
||||
Fail The serialization of border: 1px; border-top-color: red; should be canonical.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue