WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 152548
clip-path property incorrectly clips pointer-events for clipped elements
https://bugs.webkit.org/show_bug.cgi?id=152548
Summary
clip-path property incorrectly clips pointer-events for clipped elements
Klemen Slavic
Reported
2015-12-24 12:30:47 PST
Reproduction URL:
http://codepen.io/KrofDrakula/pen/zrKNKP
What steps will reproduce the problem? 1. open the page in the link 2. try clicking outside of the images/red area on the text surrounding the images 3. popup alert() appears notifying you of a click on one of the .content <img> elements What is the expected result? Should not pop up an alert() since the images should not be clickable outside of their clip-path regions (clipped by its parent, .view). What happens instead of that? Pointer events are triggered on the fixed positioned element outside of its parent's clipping path, which it shouldn't (it doesn't render outside of the bounds of its parent's clip path). Note: this happens in Chrome, too (
https://code.google.com/p/chromium/issues/detail?id=572107
). Firefox handles this correctly, but in the demo page, the third example doesn't work since it only supports URL SVG clipping paths, not inset().
Attachments
Add attachment
proposed patch, testcase, etc.
Daniele Orlando
Comment 1
2020-03-01 14:12:26 PST
I still can reproduce this bug with Safari 13.0.5, 4 years ago. Firefox and Chrome do behave as expected instead.
Radar WebKit Bug Importer
Comment 2
2020-03-02 09:45:11 PST
<
rdar://problem/59954339
>
Bruno Stasse
Comment 3
2021-11-13 07:00:31 PST
This seems fixed in STP 134 (and maybe before)? I can't reproduce anymore with the testcase. There are still issues probably related to this, with scrolling. I just created this:
https://bugs.webkit.org/show_bug.cgi?id=233084
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug