New issue
Advanced search Search tips

Issue 837877 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 753124
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

[css-overflow] capturing of scroll by incorrect scrolling mechanism stacked in z space above border geometry?

Reported by h...@jonjohnjohnson.com, Apr 28 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3404.0 Safari/537.36

Steps to reproduce the problem:
1. Go to https://codepen.io/anon/pen/ppyQgY (created by simon.fraser@apple.com)
2. Attempt scrolling from within each scrollers padding box,. Exhibits correct scrolling behavior.
3. Attempt scrolling from above the right side border of the scroller on the lower right. Exhibits correct scrolling behavior of parent/document scroller.
4. Try scrolling from above the left side border of the scroller on the lower right. Exhibits incorrect scrolling behavior, not scrolling parent/document, and instead scrolls the scrollbox of the element with which the border belongs.

Seems due to the border geometry being above another element with a scrolling mechanism in z space.

What is the expected behavior?
Scrolling on any border geometry should not scroll the elements scrolling mechanism?

What went wrong?
Scroll interactions captured by wrong scroller, relative to z space and scroller stacking.

Interop issues also with safari and border scrolling events -> https://bugs.webkit.org/show_bug.cgi?id=181002

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 68.0.3404.0  Channel: canary
OS Version: OS X 10.12.6
Flash Version: 

I see it happening in my Chrome 65 as well.
 
Could be related to  https://crbug.com/831294  ???
Labels: Needs-Triage-M68
Cc: sunxd@chromium.org vamshi.kommuri@chromium.org
Labels: Triaged-ET
Mergedinto: 831294
Status: Duplicate (was: Unconfirmed)
Thanks for filing the issue!

As mentioned in Comment#1, even we feel this issue is similar to that of  Issue 831294 , Hence duplicating into it.

@sunxd: Please feel free to undupe if both aren't similar.
I don't have the permission to see the contents of http://crbug.com/823273, so I cannot really say if both are similar. I was just trying to offer extra help in solving this issue. The only way YOU would be able to tell if this is a dupe, is by going through both test cases???
In other words, please don't file this as a duplicate unless you know for sure it's a dupe, not acting on solely on my hunch of relation.

Comment 6 by sunxd@chromium.org, May 3 2018

Cc: bokan@chromium.org
Status: Untriaged (was: Duplicate)
 Issue 831294  is a feature bug for shipping accelerated border radius element scrolling and it should have nothing to do with this.

However this one looks like a hit-testing issue, I think we treat the border as part of the layer when doing hit testing in compositor (but we have plans of implementing hit testing on the correct region in cc).

That said, I'm not sure if this is expected as the spec defined scrolling behavior on a border, cc bokan@ to verify this.

Comment 7 by bokan@chromium.org, May 3 2018

Mergedinto: -831294 753124
Status: Duplicate (was: Untriaged)
Yeah, this is an unfortunate known issue but likely won't see a resolution in the very near term
Just wanted to be clear as far as "this is expected as the spec defined scrolling behavior on a border" not relating to this issue. This issue scrolls a whole different scroller from the elements border where the scrolling happens.

But regardless, I see this is a dupe of another issue and its fix may be delayed for some time.

Comment 9 by bokan@chromium.org, May 4 2018

Cc: flackr@chromium.org
Components: Blink>Compositing
Ah...thanks for your patient explanations. I see the issue now (it requires that you be on a high-dpi screen - so both scrollers are composited). When you scroll over the bottom-right scroller's border, it causes scrolling when it's over the part of the border that's on top of the top-left box's content area. When you scroll over other parts of the border it doesn't scroll (the owning scroller).

That said, I do think 753124 is still the right issue to resolve this in. That issue is that when a scroller is composited, scrolling over a border doesn't cause scrolling but it does if it's non-composited. In this case, scrolling in that overlapping region forces the scrolls to be handed in the non-composited path so we end up scrolling from the border in that one place. Other regions are handled on the composited path. I don't think we can fix this in a general way without addressing 753124.
Rats! Sorry I didn't mention my retina screen macbook, probably wasted a bit of your time.

But yes, bokan@chromium.org, that is exactly the issue and thanks for clarifying! :D

Sign in to add a comment