Repository navigation
Fix various issues with overflow clipping - #16463
Conversation
|
Heads up! This PR modifies the following files:
|
| let containing_scroll_root_id = self.setup_scroll_root_for_block(state); | ||
|
|
||
| match self.positioning() { | ||
| position::T::absolute | position::T::relative | position::T::fixed => |
There was a problem hiding this comment.
Perhaps a new method that returns a boolean if this matches could avoid some duplication?
There was a problem hiding this comment.
Okay! I've added a function for this.
cd07cbc to
668078e
Compare
|
@bors-servo r+ |
|
📌 Commit 668078e has been approved by |
Fix various issues with overflow clipping When dealing absolutely positioned items, we should use clip of our containing block, even if our containing block doesn't itself establish a new overflow clip. Additionally, we need to properly handle assigning scroll root ids to fragments of inline elements. We add a test for this behavior. <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16463) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt2 |
When dealing absolutely positioned items, we should use clip of our containing block, even if our containing block doesn't itself establish a new overflow clip. Additionally, we need to properly handle assigning scroll root ids to fragments of inline elements. We add a test for this behavior.
668078e to
4213b32
Compare
|
The new test is failing, but one result is currently incorrect because of #16462. I'm going to try to disable this particular test case (until the bug is fixed), on the chance that the bug is causing platform-dependent behavior. The new branch should have updated version of the test. @emilio, is it okay that I try to land this again? |
|
@bors-servo r=emilio |
|
📌 Commit 4213b32 has been approved by |
Fix various issues with overflow clipping When dealing absolutely positioned items, we should use clip of our containing block, even if our containing block doesn't itself establish a new overflow clip. Additionally, we need to properly handle assigning scroll root ids to fragments of inline elements. We add a test for this behavior. <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16463) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev |
When dealing absolutely positioned items, we should use clip of our
containing block, even if our containing block doesn't itself establish
a new overflow clip. Additionally, we need to properly handle
assigning scroll root ids to fragments of inline elements.
We add a test for this behavior.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is