tor-browser

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

commit cc6fe0ed5be94a97f770e375555385b6ebe3fc4b
parent a5f6d62acb8d6be0e1f12fbd483d94fd4e8bc436
Author: Kiet Ho <kiet.ho@apple.com>
Date:   Fri, 31 Oct 2025 08:57:28 +0000

Bug 1996975 [wpt PR 55738] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=299742, a=testonly

Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=299742

--

wpt-commits: ff18bad0ed20ef334b8bb3e29f755baca3030633
wpt-pr: 55738

Diffstat:
Atesting/web-platform/tests/css/css-anchor-position/position-try-display-none-hang-crash.html | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-anchor-position/position-try-display-none-hang-crash.html b/testing/web-platform/tests/css/css-anchor-position/position-try-display-none-hang-crash.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> + +<html class="test-wait"> + +<title>Browser doesn't hang when a child using position-try has an ancestor with display: none</title> +<link rel="author" title="Kiet Ho" href="mailto:kiet.ho@apple.com"> +<link rel="help" href="https://drafts.csswg.org/css-anchor-position/#fallback"> + +<style> + .inner { + position: absolute; + position-try: top right; + } +</style> + +<!-- not nested --> +<div class="outer inner"></div> + +<!-- 1 level nest --> +<div class="outer"> + <div class="inner"></div> +</div> + +<!-- 2 level nest --> +<div class="outer"> + <div> + <div class="inner"></div> + </div> +</div> + +<!-- 3 level nest --> +<div class="outer"> + <div> + <div> + <div class="inner"></div> + </div> + </div> +</div> + +<script> + let html = document.documentElement; + html.addEventListener("TestRendered", () => { + const outers = document.getElementsByClassName("outer"); + for (let i = 0; i < outers.length; ++i) + outers[i].style.display = "none"; + + html.classList.remove("test-wait"); + }); +</script> + +</html> +\ No newline at end of file