Skip to content

[css-masking] Impact of masks on hit-testing needs to be specified #11339

Description

@smfr

Currently, CSS Masking says nothing about whether masks impact hit-testing (i.e. if clicks on the masked-out part of the content are treated as a click on the element).

Chrome and Firefox do consult the mask for hit-testing; WebKit does not. Test:
https://codepen.io/therealpaulplay/pen/wBwGdXX

This was reported as a bug in WebKit.

CSS has historically shied away from specifying hit-testing, but I think this one is important. Also of note is that the spec does talk about the impact of clip-path on hit-testing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Regular agenda items
    Status
    Regular agenda

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions