Skip to content

Commit 81d35f1

Browse files
committed
[css-masking-1] Masking does not affect hit testing, per CSS WG resolution #11339
1 parent 3dbba84 commit 81d35f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-masking-1/Overview.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ A closed vector path, shape or polygon defines a so called <dfn export>clipping
9898

9999
The 'clip-path' property can use specified basic shapes as clipping path or reference an <a element>clipPath</a> element with <a>graphics elements</a> to be used as clipping path.
100100

101+
Clipping <em>does</em> affect hit testing;
102+
there are no hits outside the clip region,
103+
only inside.
104+
101105

102106
## Masking ## {#masking}
103107

@@ -122,6 +126,8 @@ The 'mask' property serves as a shorthand property for all 'mask-border' and 'ma
122126

123127
Note: While masking gives many possibilities for enhanced graphical effects and in general provides more control over the “visible portions” of the content, clipping paths can perform better and basic shapes are easier to interpolate.
124128

129+
Masking <em>does not</em> affect hit testing.
130+
125131

126132
# Module interactions # {#placement}
127133

0 commit comments

Comments
 (0)