mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb: Update the border metrics of absolutely positioned boxes
We were neglecting to populate the border parts of BoxModelMetrics for absolutely positioned block descendants.
This commit is contained in:
parent
232e41a238
commit
ee1c241be9
Notes:
sideshowbarker
2024-07-19 05:23:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ee1c241be95
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,11 @@ void LayoutBlock::layout_absolutely_positioned_descendant(LayoutBox& box)
|
|||
box_model.margin.right = box.style().margin().right.resolved_or_auto(box, width());
|
||||
box_model.margin.bottom = box.style().margin().bottom.resolved_or_auto(box, height());
|
||||
|
||||
box_model.border.left = Length::make_px(box.style().border_left().width);
|
||||
box_model.border.right = Length::make_px(box.style().border_right().width);
|
||||
box_model.border.top = Length::make_px(box.style().border_top().width);
|
||||
box_model.border.bottom = Length::make_px(box.style().border_bottom().width);
|
||||
|
||||
box_model.offset.left = box.style().offset().left.resolved_or_auto(box, width());
|
||||
box_model.offset.top = box.style().offset().top.resolved_or_auto(box, height());
|
||||
box_model.offset.right = box.style().offset().right.resolved_or_auto(box, width());
|
||||
|
|
Loading…
Add table
Reference in a new issue