aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-overflow
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-06-19 18:04:05 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-06-20 11:44:25 +0200
commit459a7d26aabbae7a67fdaabc175adb3ca864debd (patch)
tree05f1216a7a33b2b415e6beff22991000e8918d5c /tests/wpt/web-platform-tests/css/css-overflow
parent836ae5fa48b7cb60dd801e6cd20becc1d839e8f5 (diff)
downloadservo-459a7d26aabbae7a67fdaabc175adb3ca864debd.tar.gz
servo-459a7d26aabbae7a67fdaabc175adb3ca864debd.zip
Simplify layout of absolutes with static insets
Absolutes with static insets need to be laid out at their ancestor containing blocks, but their position is dependent on their parent's layout. The static layout position is passed up the tree during hoisting and ancestors each add their own offset to the position until it is relative to the containing block that contains the absolute. This is currently done with a closure and a fairly tricky "tree rank" numbering system that needs to be threaded through the entire layout. This change replaces that system. Every time a child is laid out we create a positioning context to hold any absolute children (this can be optimized away at a later time). At each of these moments, we call a method to aggregate offsets to the static insets of hoisted absolutes. This makes the logic easier to follow and will also allow implementing this behavior for inline-blocks, which was impossible with the old system.
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-overflow')
0 files changed, 0 insertions, 0 deletions