diff options
author | bors-servo <infra@servo.org> | 2023-01-18 08:18:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 08:18:39 +0100 |
commit | c8d9aad3e3f15e0a42e726f09d70d9b75fd9e49e (patch) | |
tree | 46841d4532782a46a9a91f26b4015184013b9f57 /python/servo/bootstrap.py | |
parent | 8a96f4cd3b8fe07ba05ac79b389893227f6bf089 (diff) | |
parent | d1355dffff0d02b6303d09ecaec072a4b4e40151 (diff) | |
download | servo-c8d9aad3e3f15e0a42e726f09d70d9b75fd9e49e.tar.gz servo-c8d9aad3e3f15e0a42e726f09d70d9b75fd9e49e.zip |
Auto merge of #28880 - wusyong:fix-footer, r=delan
Fix absolute descendents being replaced when retreiving root
<!-- Please describe your changes on the following line: -->
The cause of #16410 is because calling `try_get_layout_root` will replace its `abs_descendants` even itself isn't absolute positioned. So I pushed them instead if the root isn't absolute. Also add a few docs and comments to help understand how block size of absolute flow is being calculated.
---
<!-- 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 fix #16410 (GitHub issue number if applicable)
<!-- Either: -->
- [x] There are tests for these changes:
Reduced testcase from the issue.
```html
<style>
html {
min-height: 100%;
position: relative;
}
div {
position: absolute;
bottom: 0;
width: 100%;
height: 25px;
border: 1px solid black;
}
</style>
<div>
</div>
```
<!-- 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 'python/servo/bootstrap.py')
0 files changed, 0 insertions, 0 deletions