tor-browser

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

commit 8a60a6f6d1e34c25b5b315324548d63daed232b4
parent 01054642fe59c8c9c2ee1196c12d74fa5c9efbc0
Author: Rune Lillesveen <futhark@chromium.org>
Date:   Tue, 16 Dec 2025 08:29:17 +0000

Bug 2005478 [wpt PR 56678] - Compute gradient values in cross-fade(), a=testonly

Automatic update from web-platform-tests
Compute gradient values in cross-fade()

Top level gradient values had values computed as necessary,
but not as gradients inside image-set() and cross-fade().

This CL implements resolution in CSSCrossfadeValue. CSSImageSetValue
resolution will be done in another CL.

Bug: 466978530
Change-Id: Ib2d08e7d59d505e5617bfb592bf55fc9f64e602b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7246657
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1557294}

--

wpt-commits: 80c17839b17bfca967b3acf2980a6da95b342535
wpt-pr: 56678

Diffstat:
Mtesting/web-platform/tests/css/css-values/tree-counting/sibling-index-linear-gradient-gcs.html | 18+++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/testing/web-platform/tests/css/css-values/tree-counting/sibling-index-linear-gradient-gcs.html b/testing/web-platform/tests/css/css-values/tree-counting/sibling-index-linear-gradient-gcs.html @@ -6,13 +6,25 @@ <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <style> - #target { + #t1 { background-image: linear-gradient(white, rgb(0 0 calc(sibling-index() * 200))); } + #t2 { + background-image: cross-fade(linear-gradient(white, rgb(0 0 calc(sibling-index() * 200))) 40%, rgb(0 0 calc(sibling-index() * 200)) 60%); + } </style> -<div id="target"></div> +<div> + <div id="t1"></div> +</div> +<div> + <div id="t2"></div> +</div> <script> test(() => { - assert_equals(getComputedStyle(target).backgroundImage, "linear-gradient(rgb(255, 255, 255), rgb(0, 0, 200))"); + assert_equals(getComputedStyle(t1).backgroundImage, "linear-gradient(rgb(255, 255, 255), rgb(0, 0, 200))"); }, "Check that sibling-index() is resolved in serialization of computed value of linear-gradient()"); + + test(() => { + assert_equals(getComputedStyle(t2).backgroundImage, "cross-fade(linear-gradient(rgb(255, 255, 255), rgb(0, 0, 200)) 40%, rgb(0, 0, 200) 60%)"); + }, "Check that sibling-index() is resolved in serialization of computed value of linear-gradient() inside cross-fade()"); </script>