mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:17:35 +00:00
LibWeb: Support box-sizing in BFC
Add support for box-sizing in block formatting context, support for Flex Formatting Context and Grid Formatting Context is missing
This commit is contained in:
parent
610f1a5aab
commit
aa08c825ec
3 changed files with 67 additions and 13 deletions
|
@ -60,6 +60,9 @@ public:
|
|||
float calculate_fit_content_height(Layout::Box const&, AvailableSpace const&) const;
|
||||
float calculate_fit_content_width(Layout::Box const&, AvailableSpace const&) const;
|
||||
|
||||
CSS::Length calculate_inner_width(Layout::Box const&, AvailableSize const&, CSS::Size const& width) const;
|
||||
CSS::Length calculate_inner_height(Layout::Box const&, AvailableSize const&, CSS::Size const& height) const;
|
||||
|
||||
virtual float greatest_child_width(Box const&);
|
||||
|
||||
float containing_block_width_for(Box const& box) const { return containing_block_width_for(box, m_state); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue