tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8b8510e11701f03a01d7539ce769cef301e658dc
parent e77afb85c677ab095a02f2a2b803efe8da0984f3
Author: Philip Rogers <pdr@chromium.org>
Date:   Wed,  3 Dec 2025 14:41:55 +0000

Bug 2003322 [wpt PR 56373] - Add a test for hit testing with perspective, clipping, and border radius, a=testonly

Automatic update from web-platform-tests
Add a test for hit testing with perspective, clipping, and border radius

This patch adds a regression test for a bug with hit testing under
perspective, overflow clip, and border-radius. The feature has been
moved from status: test to ensure we do not regress this. The existing
test for the HitTestBorderRadiusForStackingContext feature has been
marked as failing.

Bug: 456164629, 40811639
Change-Id: Ibd33ca5f35af8b49d566227a4f8c9fa0091ccb12
Fixed: 456861424
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7204066
Reviewed-by: Stefan Zager <szager@chromium.org>
Auto-Submit: Philip Rogers <pdr@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1552270}

--

wpt-commits: b9e5b3c3bbaee8bb4b9936019d63d80730ecd890
wpt-pr: 56373

Diffstat:
Atesting/web-platform/tests/css/css-overflow/hit-test-border-radius-and-perspective.html | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-overflow/hit-test-border-radius-and-perspective.html b/testing/web-platform/tests/css/css-overflow/hit-test-border-radius-and-perspective.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<link rel="help" href="https://crbug.com/456164629"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id=padding style="padding-top: 100px;"> + <div id=perspective style="perspective: 1px;"> + <div id=overflow style="border-radius: 5px; overflow: hidden;"> + <div id=target style="position: relative; background: green; width: 100px; height: 100px;"></div> + </div> + </div> +</div> + +<script> + test(()=> { + assert_equals(document.elementFromPoint(50, 150), target); + }, "Hit testing should work on elements under perspective and border radius"); +</script>