haikuwebkit/LayoutTests/compositing/scrolling
Simon Fraser 0dfb19cdf2 Scrollbar hidden when scroller has a negative z-index child
https://bugs.webkit.org/show_bug.cgi?id=227545

Reviewed by Alan Bujtas.
Source/WebCore:

The code to ensure that overflow:scroll scrollbars appeared on top of composited descendant
layers had incorrect behavior if the only descendant had negative z-index; it would move the
overflow controls container layer to be after that descendant, and thus behind foreground
content.

Fix by inserting the overflow controls container layer in front of the frontmost of the
descendant and the scroller itself.

Test: compositing/scrolling/async-overflow-scrolling/negative-z-in-scroller-hidden-scrollbar.html

* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::adjustOverflowScrollbarContainerLayers):

LayoutTests:

* compositing/scrolling/async-overflow-scrolling/layer-for-negative-z-in-scroller-expected.txt: Rebaseline
* compositing/scrolling/async-overflow-scrolling/negative-z-in-scroller-hidden-scrollbar-expected.html: Added.
* compositing/scrolling/async-overflow-scrolling/negative-z-in-scroller-hidden-scrollbar.html: Added.


Canonical link: https://commits.webkit.org/239524@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-08 20:29:32 +00:00
..
async-overflow-scrolling Scrollbar hidden when scroller has a negative z-index child 2021-07-08 20:29:32 +00:00
fixed-inside-scroll-expected.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
fixed-inside-scroll.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
overflow-scrolling-layers-are-self-painting-expected.txt
overflow-scrolling-layers-are-self-painting.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
touch-scroll-to-clip-expected.txt
touch-scroll-to-clip.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
touch-scrolling-repaint-expected.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
touch-scrolling-repaint-spans-expected.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
touch-scrolling-repaint-spans.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
touch-scrolling-repaint.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00