tor-browser

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

commit 1c239b8bb0915cdc80f0460aff61176c38911ed6
parent c90e3e63b0f3bdc7845046ff120c847b05242c91
Author: moonira <moonira@google.com>
Date:   Mon,  5 Jan 2026 10:37:07 +0000

Bug 2008378 [wpt PR 56965] - Support random() function values inside image-set(), a=testonly

Automatic update from web-platform-tests
Support random() function values inside image-set()

Support random() function inside image-set() resolution options.

Note: We only support random() values with fixed random value sharing
option, since other types of random() values will require access to
element to get random base value from the cache. There is a similar
existing issue for sibling-index() [0].

[0] https://issues.chromium.org/issues/410746569

Bug: 413385732
Change-Id: I9d63d8b2955ab1de041633054482402224da95a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7300448
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Munira Tursunova <moonira@google.com>
Cr-Commit-Position: refs/heads/main@{#1563951}

--

wpt-commits: a42db9e46752075ec312a19e2593d91d2ec9a79c
wpt-pr: 56965

Diffstat:
Mtesting/web-platform/tests/css/css-values/random-computed.tentative.html | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-values/random-computed.tentative.html b/testing/web-platform/tests/css/css-values/random-computed.tentative.html @@ -333,6 +333,7 @@ test_random_computed_value('color', 'rgb(from blue random(51, 10) random(g + 51, test_random_computed_value('color', 'color-mix(in srgb, rgb(random(30, 10) 0 0), rgb(random(21, 10) 0 0))', 'color(srgb 0.1 0 0)'); test_random_computed_value('math-depth', 'add(random(30, 10))', '30'); test_random_computed_value('view-transition-name', 'ident("myident" random(30, 10))', 'myident30'); +test_random_computed_value('background-image', 'image-set(url("http://example.com/image.png") calc(random(fixed 0.3, 0, 10) * 1x))', 'image-set(url("http://example.com/image.png") 3dppx)'); // Test random value sharing test(() => {