- From: Andrew via GitHub <sysbot+gh@w3.org>
- Date: Wed, 19 Feb 2020 17:53:26 +0000
- To: public-css-archive@w3.org
> florian: s/this is hard, hit testing is hard/I don't think this is partcularly hard in itself, but hit testing in
I don't think it is that hard.
It is just about replacing existing [pseudo-]code
```
if ( point is in el.border_box() )
...
```
by
```
if ( point is in el.hit_margin_box() ) // or path
...
```
Yes, there are issues with overlapping elements but that can be solved by authors using existing means:
```
button {
hit-margin:1em;
margin:1em; // to avoid overlapping with siblings
}
```
or
```
button {
hit-margin:1em;
position:relative; // to move it in front of z-order
}
```
--
GitHub Notification of comment by c-smile
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4708#issuecomment-588355177 using your GitHub account
Received on Wednesday, 19 February 2020 17:53:28 UTC