tor-browser

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

commit e69376ba9aaf6e6d18a353b68bdb30689854e59b
parent c019c0904ad0ca8c926f4c9f1f243177d77e81f3
Author: Daniel Holbert <dholbert@cs.stanford.edu>
Date:   Fri, 31 Oct 2025 19:05:12 +0000

Bug 1997511: Change descriptive text to be a code-comment in reftest background-blend-mode-body-transparent-image.html. r=layout-reviewers,emilio

As the descriptive text says, this test is meant to test the interaction
between `border-image` and `background-blend-mode`; it's not meant to be
testing anything to do with text-rendering.  So it should be fine to remove the
text; and let's remove it, because it happens to cause antialiasing-related
intermittent failures which aren't really worrisome or interesting.

(We could also paper over these failures by relaxing the fuzzy annotation, but
that would require us to step up the color-channel-difference-allowance for
the rest of the fuzzy-matching part of the test, which would unnecessarily
reduce the strictess; so I'd rather not do that.)

Also: while I'm here, I'm cleaning up whitespace in the CSS (swapping tabs
for spaces and linewrapping a long line).

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

Diffstat:
Mlayout/reftests/css-blending/background-blend-mode-body-transparent-image-ref.html | 6+++---
Mlayout/reftests/css-blending/background-blend-mode-body-transparent-image.html | 15+++++++++++----
2 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/layout/reftests/css-blending/background-blend-mode-body-transparent-image-ref.html b/layout/reftests/css-blending/background-blend-mode-body-transparent-image-ref.html @@ -1,8 +1,8 @@ <!DOCTYPE HTML> <style> body { - background-image: linear-gradient(transparent, transparent 10%, green 10%, green 90%, transparent 90%, transparent); + background-image: linear-gradient(transparent, transparent 10%, + green 10%, green 90%, + transparent 90%, transparent); } </style> -<p>This test will check that a transparent background-image set on body does not blend with the browser's white background color.<br/> -The test passes if the page has a green background with white horizontal lines.</p> diff --git a/layout/reftests/css-blending/background-blend-mode-body-transparent-image.html b/layout/reftests/css-blending/background-blend-mode-body-transparent-image.html @@ -1,9 +1,16 @@ <!DOCTYPE HTML> <style> body { - background-image: linear-gradient(transparent, transparent 10%, green 10%, green 90%, transparent 90%, transparent); - background-blend-mode: screen; + background-image: linear-gradient(transparent, transparent 10%, + green 10%, green 90%, + transparent 90%, transparent); + background-blend-mode: screen; } </style> -<p>This test will check that a transparent background-image set on body does not blend with the browser's white background color.<br/> -The test passes if the page has a green background with white horizontal lines.</p> +<!-- + This test will check that a transparent background-image set on body does not + blend with the browser's white background color. + + The test passes if the page has a green background with white horizontal + lines. +-->