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

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