You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(target-size): determine offset using clientRects if target is display:inline (#5012)
This pr does two things:
1. For target size we decided to calculate the visible unobscured rects
by taking the bounding rect of the target and subtracting the client
rects of the obscurer if the obscurer is inline. This is because an
inline element only accepts pointer events on the client rects and not
the bounding rect. For the target we still take the bounding rect and
not the client rects if the target is inline because we both agreed that
the goal of the target size rule is to prevent clicking on the wrong
target and not that the target itself is large enough to click on. So an
inline element with multiple lines would have dead pointer zones within
it, but accidentally clicking on a dead zone is not a failure of target
size.
2. This also applies using client rects for inline elements for the
spacing exception for the same reasons as above. What this does is allow
checking multiple target rects for inline nodes and makes sure each rect
passes the spacing exception. If at least one rect does not pass the
rule fails for that element.
Closes: #4928
0 commit comments