mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
LibWeb: Use the parent container's y offset when finding static position
Fixes #18819.
This commit is contained in:
parent
bf06d5b634
commit
5da9f52b1f
5 changed files with 37 additions and 2 deletions
|
@ -100,6 +100,9 @@ struct LayoutState {
|
|||
CSSPixels inset_top { 0 };
|
||||
CSSPixels inset_bottom { 0 };
|
||||
|
||||
// Used for calculating the static position of an abspos block-level box.
|
||||
CSSPixels vertical_offset_of_parent_block_container { 0 };
|
||||
|
||||
Vector<LineBox> line_boxes;
|
||||
|
||||
CSSPixels margin_box_left() const { return margin_left + border_left_collapsed() + padding_left; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue