mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Don't serialize shorthand with non-uniform CSS-wide keywords
This commit is contained in:
parent
3c6b8d5a2c
commit
f8f4da3b90
Notes:
github-actions[bot]
2025-06-16 11:39:06 +00:00
Author: https://github.com/Calme1709
Commit: f8f4da3b90
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5066
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 253 additions and 9 deletions
|
@ -61,8 +61,12 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const
|
|||
}
|
||||
});
|
||||
|
||||
if (all_same_keyword && built_in_keyword.has_value())
|
||||
return MUST(String::from_utf8(string_from_keyword(built_in_keyword.value())));
|
||||
if (built_in_keyword.has_value()) {
|
||||
if (all_same_keyword)
|
||||
return MUST(String::from_utf8(string_from_keyword(built_in_keyword.value())));
|
||||
|
||||
return ""_string;
|
||||
}
|
||||
|
||||
auto default_to_string = [&]() {
|
||||
auto all_properties_same_value = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue