1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibWeb: Consider colgroups while calculating table grid size

We should take in account <col> elements in column groups while finding
number of columns in a table.
This commit is contained in:
Aliaksandr Kalenik 2023-11-04 04:08:59 +01:00 committed by Andreas Kling
parent 6d31d81309
commit 2660bbb94f
4 changed files with 35 additions and 0 deletions

View file

@ -65,6 +65,11 @@ public:
return box.display().is_table_row();
}
static bool is_table_column_group(Box const& box)
{
return box.display().is_table_column_group();
}
template<typename Matcher, typename Callback>
static void for_each_child_box_matching(Box const& parent, Matcher matcher, Callback callback)
{