W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

[csswg-drafts] [css4-ui] pointer-events for pseudo-elements

From: Binyamin Laukstein via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Nov 2017 20:43:23 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-277162312-1511815402-sysbot+gh@w3.org>
laukstein has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css4-ui] pointer-events for pseudo-elements ==
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](https://caniuse.com/#search=pointer-events) on all browsers, except this behaves clickable:
<a href=#test></a>

a:before {
    content: "Link";
    pointer-events: none;
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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2012 using your GitHub account
Received on Monday, 27 November 2017 20:43:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 27 November 2017 20:43:29 UTC