| Summary: | Children of sticky-positioned elements can layer on top of overlay scrollbars | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Caleb Hearon <caleb> | ||||
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | bernardo.belchior, bfulgham, simon.fraser, webkit-bug-importer, zalan | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari Technology Preview | ||||||
| Hardware: | Mac (Intel) | ||||||
| OS: | macOS 12 | ||||||
| Attachments: |
|
||||||
|
Description
Caleb Hearon
2022-06-29 09:49:30 PDT
I am facing this issue as well. I have another way to reproduce it, in case it is useful.
I'm using Safari 16.3 on macOS 13.2.1.
```html
<html lang="en">
<body>
<div id="root">
<div style="position: absolute; inset: 0px; overflow: hidden auto;" data-test="absolute">
<div style="height: 150vh; position: sticky; width: 100vw; overflow: auto hidden; background-color: yellow;"
data-test="sticky-outer">
<div data-test="sticky-inner" style="width: 100vw; height: 50vh; position: sticky; background-color: orange;"></div>
</div>
</div>
</div>
</body>
</html>
```
(In reply to Bernardo Belchior from comment #2) > I am facing this issue as well. I have another way to reproduce it, in case > it is useful. > > I'm using Safari 16.3 on macOS 13.2.1. > > ```html > <html lang="en"> > <body> > <div id="root"> > <div style="position: absolute; inset: 0px; overflow: hidden auto;" > data-test="absolute"> > <div style="height: 150vh; position: sticky; width: 100vw; overflow: > auto hidden; background-color: yellow;" > data-test="sticky-outer"> > <div data-test="sticky-inner" style="width: 100vw; height: 50vh; > position: sticky; background-color: orange;"></div> > </div> > </div> > </div> > </body> > </html> > ``` In order to reproduce, try grabbing the scrollbar when it is on top of the orange div. It won't work. It will work if you try to grab it in the yellow div, though. (In reply to Bernardo Belchior from comment #2) > I am facing this issue as well. I have another way to reproduce it, in case > it is useful. > > I'm using Safari 16.3 on macOS 13.2.1. > > ```html > <html lang="en"> > <body> > <div id="root"> > <div style="position: absolute; inset: 0px; overflow: hidden auto;" > data-test="absolute"> > <div style="height: 150vh; position: sticky; width: 100vw; overflow: > auto hidden; background-color: yellow;" > data-test="sticky-outer"> > <div data-test="sticky-inner" style="width: 100vw; height: 50vh; > position: sticky; background-color: orange;"></div> > </div> > </div> > </div> > </body> > </html> > ``` In order to reproduce, try grabbing the scrollbar when it is on top of the orange div. It won't work. It will work if you try to grab it in the yellow div, though. Created attachment 465637 [details]
Testcase
|