tor-browser

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

commit 2947348bb6b019843b3901a653adfaa255eeb80b
parent 852e1eafc9c44b8bbe16dcf0306fc2b7fb300c09
Author: Daniel Holbert <dholbert@cs.stanford.edu>
Date:   Sat, 15 Nov 2025 00:36:00 +0000

Bug 2000330: Use a sans-serif font to avoid fuzzy failure in WPT cache-miss-001.html. r=layout-reviewers,emilio

The green "hi" text on green background in this testcase is not meant to be
visible at all. But the "h" character's top-left-serif draws a little bit of
antialiased fringe barely outside of the green square, which causes a spurious
test failure. Using a sans-serif font will avoid that decoration and prevent
this spurious failure.

Differential Revision: https://phabricator.services.mozilla.com/D272731

Diffstat:
Dtesting/web-platform/meta/css/css-sizing/stretch/cache-miss-001.html.ini | 3---
Mtesting/web-platform/tests/css/css-sizing/stretch/cache-miss-001.html | 6++++++
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/testing/web-platform/meta/css/css-sizing/stretch/cache-miss-001.html.ini b/testing/web-platform/meta/css/css-sizing/stretch/cache-miss-001.html.ini @@ -1,3 +0,0 @@ -[cache-miss-001.html] - expected: - if os == "win": FAIL diff --git a/testing/web-platform/tests/css/css-sizing/stretch/cache-miss-001.html b/testing/web-platform/tests/css/css-sizing/stretch/cache-miss-001.html @@ -13,6 +13,12 @@ height: 100px; z-index: -1; } + #target { + /* Use a sans-serif font to reduce likelihood that the 'hi' text draws any + flourishes that happen to generate antialiasing fringe outside the + container: */ + font-family: sans-serif; + } </style> <p>Test passes if there is a filled green square and <strong>no red</strong>.