Wuelle / Stormlicht

The Stormlicht browser engine.
MIT License
12 stars 0 forks source link

Correctly choose containing block for `position: absolute` #16

Open Wuelle opened 6 months ago

Wuelle commented 6 months ago

Right now, elements with position: absolute; are positioned relative to their containing block, the same way other flow elements are.

Instead, they should be positioned relative to the absolute positioning containing block.

The relevant specification for this is https://drafts.csswg.org/css-position