1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:07:35 +00:00

LibWeb: Fix absolute positioning issues

Make sure the insets and margins calculated according to the spec are
not later ignored and ad-hoc recomputed in
layout_absolutely_positioned_element.

Use the static position calculation in a couple of places where the
spec (and comment) was indicating it should be used.

Fixes #19362
This commit is contained in:
Sebastian Zaha 2023-07-07 15:24:57 +02:00 committed by Andreas Kling
parent 61fe7c230f
commit fd37ad3a84
8 changed files with 134 additions and 134 deletions

View file

@ -4,5 +4,5 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
Box <div.pink> at (38,38) content-size 724x0 flex-container(row) [FFC] children: not-inline
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
TextNode <#text>
BlockContainer <div.orange> at (38,-12) content-size 100x100 positioned [BFC] children: inline
BlockContainer <div.orange> at (48,-12) content-size 100x100 positioned [BFC] children: inline
TextNode <#text>