aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-overflow/overflow-img-scroll-replaced.html
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-06-21 08:16:49 +0200
committerGitHub <noreply@github.com>2023-06-21 08:16:49 +0200
commitfa7107ac12a13ec4c7baffbd3fc13996f8cd9ac3 (patch)
tree5a96c02a829325e73f17c3b141e53df3bc1178b5 /tests/wpt/web-platform-tests/css/css-overflow/overflow-img-scroll-replaced.html
parent07bbbad5f954790ad79611821f12cc1d0d51d929 (diff)
parent459a7d26aabbae7a67fdaabc175adb3ca864debd (diff)
downloadservo-fa7107ac12a13ec4c7baffbd3fc13996f8cd9ac3.tar.gz
servo-fa7107ac12a13ec4c7baffbd3fc13996f8cd9ac3.zip
Auto merge of #29894 - mrobinson:ditch-static-position-closure, r=Loirooriol
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. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it should not change behavior. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-overflow/overflow-img-scroll-replaced.html')
0 files changed, 0 insertions, 0 deletions