Bug 193192 - [css-sticky] sticky canvas obscures scrollbars of (flexbox?) parent
Summary: [css-sticky] sticky canvas obscures scrollbars of (flexbox?) parent
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-01-07 01:44 PST by Andy E
Modified: 2019-01-07 12:43 PST (History)
4 users (show)

See Also:


Attachments
Self-contained example (2.60 KB, text/html)
2019-01-07 01:44 PST, Andy E
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy E 2019-01-07 01:44:24 PST
Created attachment 358488 [details]
Self-contained example

Open the attached HTML file. You will see a canvas element with a grid drawn on it. The canvas is a sticky-positioned child of a container, set to 100% width and height, with another element in the flex flow that sets an artificial scroll area for the canvas.

When you hover over the canvas and scroll, you cannot see the scrollbars on either axis until you reach the over-scroll point.  When the canvas is not sticky and is instead contained within a sticky div, the problem goes away.

NOTE: the only way I could achieve this kind of sticky positioning was to use a container with `display: flex`, as WebKit does not respect `position: sticky` on a parent that has `overflow: auto`.  Therefore, I'm unsure as to whether flexbox is part of the issue.
Comment 1 Simon Fraser (smfr) 2019-01-07 12:42:58 PST
I think this is more generically about composited elements overlapping scrollbars.
Comment 2 Radar WebKit Bug Importer 2019-01-07 12:43:27 PST
<rdar://problem/47093278>