mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
LibWeb: Serialize grid/grid-template as "none" when applicable
This exposes a bunch of false-positives in the grid-{shorthand,template}-invalid.html WPT tests, but gains us some new passes as well.
This commit is contained in:
parent
7d81823eb3
commit
12c9da2d3f
Notes:
github-actions[bot]
2025-06-16 11:38:44 +00:00
Author: https://github.com/Calme1709
Commit: 12c9da2d3f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5066
Reviewed-by: https://github.com/AtkinsSJ ✅
7 changed files with 30 additions and 27 deletions
|
@ -383,6 +383,9 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const
|
|||
auto& rows = longhand(PropertyID::GridTemplateRows)->as_grid_track_size_list();
|
||||
auto& columns = longhand(PropertyID::GridTemplateColumns)->as_grid_track_size_list();
|
||||
|
||||
if (areas.grid_template_area().size() == 0 && rows.grid_track_size_list().track_list().size() == 0 && columns.grid_track_size_list().track_list().size() == 0)
|
||||
return "none"_string;
|
||||
|
||||
auto construct_rows_string = [&]() {
|
||||
StringBuilder builder;
|
||||
size_t idx = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue