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 upScroll frames should not be containing blocks for position:absolute descendants #13530
Labels
Comments
mrobinson
added a commit
to mrobinson/servo
that referenced
this issue
Mar 24, 2017
Absolutely positioned elements should be given the scroll root of their containing block and not necessarily the scroll root of their parent. This fixes several CSS tests, though others are still failing pending a similar fix for inherited clipping rectangles. Fixes servo#13530.
mrobinson
added a commit
to mrobinson/servo
that referenced
this issue
Mar 24, 2017
Absolutely positioned elements should be given the scroll root of their containing block and not necessarily the scroll root of their parent. This fixes several CSS tests, though others are still failing pending a similar fix for inherited clipping rectangles. Fixes servo#13530.
mrobinson
added a commit
to mrobinson/servo
that referenced
this issue
Mar 27, 2017
Absolutely positioned elements should be given the scroll root of their containing block and not necessarily the scroll root of their parent. This fixes several CSS tests, though others are still failing pending a similar fix for inherited clipping rectangles. Fixes servo#13530.
bors-servo
added a commit
that referenced
this issue
Mar 27, 2017
Fix scroll root of absolutely positioned elements Absolutely positioned elements should be given the scroll root of their containing block and not necessarily the scroll root of their parent. This fixes several CSS tests, though others are still failing pending a similar fix for inherited clipping rectangles. Fixes #13530. <!-- 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/16146) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 27, 2017
Fix scroll root of absolutely positioned elements Absolutely positioned elements should be given the scroll root of their containing block and not necessarily the scroll root of their parent. This fixes several CSS tests, though others are still failing pending a similar fix for inherited clipping rectangles. Fixes #13530. <!-- 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/16146) <!-- Reviewable:end -->
|
@mrobinson I tested this against master and it doesn't seem to be working for me? |
|
Interesting. I'll try a fresh build again tomorrow and see if I can still repro. The gif looks great! |
|
@mrobinson I tested this again - pasted the repro case above into a file, and loaded in current Servo master - and it doesn't seem to work. Perhaps the test repro above is incorrect? Or something really weird is happening with my build? |
|
@mrobinson Oh, never mind - I just realized it was an issue with my local build. This all works now, great news! |
clementmiao
added a commit
to clementmiao/servo
that referenced
this issue
Apr 7, 2017
Absolutely positioned elements should be given the scroll root of their containing block and not necessarily the scroll root of their parent. This fixes several CSS tests, though others are still failing pending a similar fix for inherited clipping rectangles. Fixes servo#13530.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

In this testcase, the cyan circle should not scroll with the scroll frame contents: https://jsfiddle.net/mstange/r96r1pqh/1/
Additionally, it should not be clipped by the scroll frame. And it should be composited in the same opacity group as the scrolled contents.