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

LibWeb: Override width calculation for table wrappers

Introduce `TableWrapper` type so table wrappers could be
distinguished from block containers and override width
calculation for table wrappers (CSS 2.2 spec, section 17.5.2)
 inside BFCs in the way that their width should be equal to
width of table box they wrap.
This commit is contained in:
Aliaksandr Kalenik 2023-01-14 14:48:20 +01:00 committed by Andreas Kling
parent 7526f9a8b7
commit 709fe01f52
8 changed files with 74 additions and 1 deletions

View file

@ -90,6 +90,7 @@ public:
virtual bool is_label() const { return false; }
virtual bool is_replaced_box() const { return false; }
virtual bool is_list_item_marker_box() const { return false; }
virtual bool is_table_wrapper() const { return false; }
template<typename T>
bool fast_is() const = delete;