mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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.
7 lines
96 B
Plaintext
7 lines
96 B
Plaintext
Corner (5,5):
|
|
<HTML>
|
|
Near corner (25,25):
|
|
<DIV id="target">
|
|
Center (100,100):
|
|
<DIV id="target">
|