Files
ladybird/Tests/LibWeb/Text/expected/hit-test-border-radius.txt
Aliaksandr Kalenik 8b411ff8c6 LibWeb: Account for border-radius in hit testing
This change adds border-radius awareness to hit testing in two places:
1. ClipData::contains() now uses BorderRadiiData::contains() to properly
   check if a point is inside a rounded clip rect. This handles overflow
   clips from ancestor elements that have border-radius.
2. PaintableBox::hit_test() now directly checks the element's own
   border-radius before reporting a hit.
2026-01-22 11:30:17 +01:00

7 lines
96 B
Plaintext

Corner (5,5):
<HTML>
Near corner (25,25):
<DIV id="target">
Center (100,100):
<DIV id="target">