Skip to content

[css4-ui] pointer-events for pseudo-elements #2012

Closed
@laukstein

Description

@laukstein

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:

<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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions