tor-browser

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

commit 1c729fbf2ffdff429c21a6159fba5a97fd88ad95
parent ca9c728f9a091273a908b7feb48d34ca9b3b6642
Author: Ziran Sun <zsun@igalia.com>
Date:   Tue, 21 Oct 2025 10:22:52 +0000

Bug 1994251 [wpt PR 55418] - Caret-shape: use fuzzy-match for caret opacity tests., a=testonly

Automatic update from web-platform-tests
Caret-shape: use fuzzy-match for caret opacity tests.

The previously introduced WPT tests fail for Chrome. This
is due to a tiny difference on the correspondent values
converted from RGBA. This can be browser dependent.
We use fuzzy-match to accommodate this difference.

Bug: 353713061
Change-Id: I0155195f0f58c38a65c481575e654a50b2ac345d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7037417
Reviewed-by: Manuel Rego <rego@igalia.com>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Ziran Sun <zsun@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1530018}

--

wpt-commits: 4f4541229ae238baab55d53d53d23a5c32b4fc82
wpt-pr: 55418

Diffstat:
Mtesting/web-platform/tests/css/css-ui/caret-shape-block-color-002.tentative.html | 1+
Mtesting/web-platform/tests/css/css-ui/caret-shape-block-color-003.tentative.html | 1+
Mtesting/web-platform/tests/css/css-ui/caret-shape-block-color-004-ref.tentative.html | 3+--
Mtesting/web-platform/tests/css/css-ui/caret-shape-block-color-004.tentative.html | 6+++---
4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/testing/web-platform/tests/css/css-ui/caret-shape-block-color-002.tentative.html b/testing/web-platform/tests/css/css-ui/caret-shape-block-color-002.tentative.html @@ -2,6 +2,7 @@ <title>Test caret-shape block color when there is no CSS color property specified</title> <link rel=help href="https://drafts.csswg.org/css-ui/#caret-shape"> <link rel=match href="caret-shape-block-color-002-ref.tentative.html"> +<meta name=fuzzy content="maxDifference=1;totalPixels=0-3000"> <meta name="assert" content="Test checks that caret-shape block color has an opacity of 0.5 of the default color when there is no CSS color property specified"> <style> diff --git a/testing/web-platform/tests/css/css-ui/caret-shape-block-color-003.tentative.html b/testing/web-platform/tests/css/css-ui/caret-shape-block-color-003.tentative.html @@ -2,6 +2,7 @@ <title>Test caret-shape block color when the overlapping visible character's CSS color property is specified</title> <link rel=help href="https://drafts.csswg.org/css-ui/#caret-shape"> <link rel=match href="caret-shape-block-color-003-ref.tentative.html"> +<meta name=fuzzy content="maxDifference=1;totalPixels=0-3000"> <meta name="assert" content="Test checks that caret-shape block color has an opacity of 0.5 of the specified value of overlapping visible character's CSS color property"> <style> diff --git a/testing/web-platform/tests/css/css-ui/caret-shape-block-color-004-ref.tentative.html b/testing/web-platform/tests/css/css-ui/caret-shape-block-color-004-ref.tentative.html @@ -8,4 +8,4 @@ background-color: rgba(0, 0, 0, 0.5); } </style> -<div><span>a</span>bc</div> -\ No newline at end of file +<div><span>a</span>bc</div> diff --git a/testing/web-platform/tests/css/css-ui/caret-shape-block-color-004.tentative.html b/testing/web-platform/tests/css/css-ui/caret-shape-block-color-004.tentative.html @@ -3,9 +3,10 @@ <title>caret-shape block color is the same as what is specified by caret-color property</title> <link rel=help href="https://drafts.csswg.org/css-ui/#caret-shape"> <link rel="match" href="caret-shape-block-color-004-ref.tentative.html"> -<script src="/common/reftest-wait.js"></script> +<meta name=fuzzy content="maxDifference=1;totalPixels=0-3000"> <meta name="assert" content="Test checks that the opacity of caret-shape block color doesn't change when caret-color is auto. "> +<script src="/common/reftest-wait.js"></script> <style> div { font-size: 5em; @@ -36,4 +37,4 @@ }); }); </script> -</body> -\ No newline at end of file +</body>