New issue
Advanced search Search tips

Issue 825211 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

cursor goes through elements in flex overflow

Reported by wsdf...@gmail.com, Mar 23 2018

Issue description

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

Steps to reproduce the problem:
When a SVG rectangle has a CSS cursor: pointer effect, and the SVG rectangle is rendered below another element because of flex positioning, the SVG rectangle can be hovered.

When adding a click handler to the SVG rectangle, the bug disappears.

When using position: absolute to bring content above the SVG rectangle, the bug disappears.

See a minimal working reproduction at https://jsfiddle.net/boxmein/ep1a05gx/

What is the expected behavior?
When hovering the text in Exhibit A in the JSFiddle the cursor should be normal.

What went wrong?
The hovering cursor is a pointer, suggesting that the mouse is above the green SVG rectangle.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 65.0.3325.162  Channel: n/a
OS Version: OS X 10.13.4
Flash Version: 

The bug doesn't occur when using position: absolute to position the rectangle. The bug also doesn't occur when a click handler is attached to the SVG rectangle (there is a sample in the JSFiddle, commented out).
 

Comment 1 by f...@opera.com, Mar 23 2018

Components: Blink>HitTesting
Status: Available (was: Unconfirmed)

Comment 2 by f...@opera.com, Apr 11 2018

Components: -Blink>SVG Blink>Layout>Flexbox
Labels: OS-Linux OS-Windows
I don't see anything SVG-specific here - replacing the <svg><rect .../></svg> fragment with an <img> with similar properties (cursor, dimensions) seems to exhibit the same issue. (The reason it "works" in cases 2 and 3 is probably because then things get layers and uses a different code-path, masking the issue.)

Comment 3 by f...@opera.com, Apr 11 2018

Summary: cursor goes through elements in flex overflow (was: SVG cursor goes through elements in flex overflow)

Sign in to add a comment