mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibWeb: Add layout support for border spacing
When border-collapse is separate, border-spacing affects layout. Implement most of that functionality.
This commit is contained in:
parent
396f1a977c
commit
b69036970b
19 changed files with 949 additions and 259 deletions
|
@ -47,6 +47,8 @@ private:
|
|||
void position_row_boxes(CSSPixels&);
|
||||
void position_cell_boxes();
|
||||
void border_conflict_resolution();
|
||||
CSSPixels border_spacing_horizontal() const;
|
||||
CSSPixels border_spacing_vertical() const;
|
||||
|
||||
CSSPixels m_table_height { 0 };
|
||||
CSSPixels m_automatic_content_height { 0 };
|
||||
|
@ -107,6 +109,9 @@ private:
|
|||
template<class RowOrColumn>
|
||||
static CSSPixels cell_max_size(Cell const& cell);
|
||||
|
||||
template<class RowOrColumn>
|
||||
CSSPixels border_spacing();
|
||||
|
||||
template<class RowOrColumn>
|
||||
Vector<RowOrColumn>& table_rows_or_columns();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue