-
Notifications
You must be signed in to change notification settings - Fork 715
[css4-ui] pointer-events for pseudo-elements #2012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@laukstein Little note: Pseudo-elements have two colons as prefix. For backwards compatibility some of them (like Sebastian |
It seems to me that nothing is wrong here. If you have the following code: <a href="#test"><span style="pointer-events: none">link</span></a> the link is still clickable in browsers. I'm not familiar with exactly how |
|
The link in this case is clickable
what means element events, element that contains pseudo-elements with @Loirooriol thanks for answering the question! Closing this task for now. Anyway it would be great to have official spec for CSS pointer-events. |
pointer-events: none means "transparent for click/touch". It is reason why link is still clickable. |
Related to planned spec https://wiki.csswg.org/spec/css4-ui#pointer-events
I don't find any well documented spec related to CSS
pointer-events
, nether regarding its behavior on pseudo-elements:before
and:after
.pointer-events is supported on all browsers, except this behaves clickable:
testcase https://output.jsbin.com/telawab/quiet
Wouldn't
pointer-events
be expected to be supported also in pseudo-elements? In this case, means, link mustn't be clickable?Maybe would be worth to mention anything in spec.
The text was updated successfully, but these errors were encountered: