tor-browser

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

commit 77046d8e256fb0ee1dc0580c6e0dbdfa5697c910
parent 053625368df5b2794fbaa778ba2185d63f8e4ea6
Author: Tim Nguyen <nt1m@users.noreply.github.com>
Date:   Thu,  6 Nov 2025 21:34:57 +0000

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

Automatic update from web-platform-tests
WebKit export: [CSS Zoom] word-spacing isn't zoom-aware (#55803)

https://bugs.webkit.org/show_bug.cgi?id=296165

Co-authored-by: Vitor Roriz <vitor.roriz@apple.com>
--

wpt-commits: c6a08639c5edadc228813166bfca5e7abd30cf59
wpt-pr: 55803

Diffstat:
Atesting/web-platform/tests/css/css-viewport/zoom/word-spacing-inherited-computed.html | 38++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-viewport/zoom/word-spacing-inherited-computed.html b/testing/web-platform/tests/css/css-viewport/zoom/word-spacing-inherited-computed.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<link rel="author" title="Vitor Roriz" href="https://github.com/vitorroriz"> +<!-- Based on css/css-viewport/zoom/word-spacing.html by Stefan Zager --> +<link rel="help" href="https://drafts.csswg.org/css-viewport/"> +<style> +.spacing { + word-spacing: 2rem; +} +.zoom { + zoom: 2; +} +</style> + +<div class="spacing"> + <div id="inherited-word-spacing">unzoomed lorem ipsum</div> +</div> + +<div class="zoom"> + <div id="zoomed-word-spacing" class="spacing">zoomed lorem ipsum</div> +</div> + +<div class="spacing"> + <div id="zoomed-inherited-word-spacing" class="zoom">zoomed inherited lorem ipsum</div> +</div> + +<script> +test(() => { + assert_equals(getComputedStyle(document.getElementById("inherited-word-spacing")).wordSpacing, '32px'); +}, "computed inherited word-spacing"); +test(() => { + assert_equals(getComputedStyle(document.getElementById("zoomed-word-spacing")).wordSpacing, '32px'); +}, "computed zoomed word-spacing"); +test(() => { + assert_equals(getComputedStyle(document.getElementById("zoomed-inherited-word-spacing")).wordSpacing, '32px'); +}, "computed zoomed inherited word-spacing"); +</script>