Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix various issues with overflow clipping #16463
Conversation
highfive
commented
Apr 14, 2017
|
Heads up! This PR modifies the following files:
|
| @@ -1953,6 +1953,12 @@ impl BlockFlowDisplayListBuilding for BlockFlow { | |||
| // we don't want it to be clipped by its own scroll root. | |||
| let containing_scroll_root_id = self.setup_scroll_root_for_block(state); | |||
|
|
|||
| match self.positioning() { | |||
| position::T::absolute | position::T::relative | position::T::fixed => | |||
This comment has been minimized.
This comment has been minimized.
emilio
Apr 16, 2017
Member
Perhaps a new method that returns a boolean if this matches could avoid some duplication?
This comment has been minimized.
This comment has been minimized.
cd07cbc
to
668078e
|
@bors-servo r+ |
|
|
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 -->
|
|
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
|
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 |
|
|
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 -->
|
|
mrobinson commentedApr 14, 2017
•
edited by larsbergstrom
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