1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 23:28:12 +00:00
serenity/Tests/LibWeb/Layout/input/block-and-inline/relpos-inline-elements.html
Andreas Kling 25a3d0d643 LibWeb: Resolve relative offsets *once* after layout
Instead of applying relative offsets (like position:relative insets)
during painting and hit testing, we now do a pass at the end of layout
and assign the final resolved offsets to paintables.

This makes painting and hit testing easier since they don't have to
think about relative offsets, and it also fixes a bug where offsets were
not applied to text fragments inside inline-flow elements that were
themselves position:relative.
2023-08-15 16:37:11 +02:00

12 lines
163 B
HTML

<style>
b {
position: relative;
top: 25px;
}
i {
position: relative;
top: 25px;
right: 25px;
}
</style>
<body>foo <b>bar</b> <b><i>baz</i></b>