tor-browser

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

commit 6685002ad3534b0d031b273931009545f85fa7f3
parent d413d643c5437cf58c3dde78e5a6361e564e055d
Author: Kiet Ho <kiet.ho@apple.com>
Date:   Fri, 10 Oct 2025 07:50:05 +0000

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

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

--

wpt-commits: 1e3c3009356f1dc49d406921ba1fc36ad81c76ad
wpt-pr: 55262

Diffstat:
Atesting/web-platform/tests/css/css-anchor-position/position-try-rule-caching.html | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-anchor-position/position-try-rule-caching.html b/testing/web-platform/tests/css/css-anchor-position/position-try-rule-caching.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> + +<title>Tests that given two sheets containing the same @position-try, modifying one sheet doesn't affect the other sheet</title> + +<link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#fallback-rule"> +<link rel="author" title="Kiet Ho" href="mailto:kiet.ho@apple.com"> + +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> + +<script> + test(() => { + const style1 = new CSSStyleSheet(); + const style2 = new CSSStyleSheet(); + + const cssText = "@position-try --try { position-area: center }"; + style1.replaceSync(cssText); + style2.replaceSync(cssText); + + style1.cssRules[0].style.positionArea = "bottom right"; + + assert_equals(style2.cssRules[0].style.positionArea, "center"); + }, "Modifying one sheet containing @position-try rule doesn't affect another sheet"); +</script> +\ No newline at end of file