tor-browser

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

commit cf2937e012f76868a1b8d04fbaeb1195d02c061c
parent ad8abce1f4c23a9cdcde3f38851617663b92d34f
Author: Martin Robinson <mrobinson@igalia.com>
Date:   Thu, 11 Dec 2025 09:29:13 +0000

Bug 2004980 [wpt PR 56595] - layout: Ensure that `background-repeat: round` size calculation rounds to nearest natural number, a=testonly

Automatic update from web-platform-tests
layout: Ensure that `background-repeat: round` size calculation rounds to nearest natural number

The previous code was just rounding to the nearest integrer, while the
specification says to round to the nearest natural number. The prevents
`inf` and `NaN` values from creeping to the results. This was leading to
a crash in WebRender.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>

--

wpt-commits: 30df11e0dba74a7763f3b74b12c8da502d567155
wpt-pr: 56595

Diffstat:
Atesting/web-platform/tests/css/css-backgrounds/background-repeat/background-repeat-image-larger-than-positioning-area-crash.html | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-backgrounds/background-repeat/background-repeat-image-larger-than-positioning-area-crash.html b/testing/web-platform/tests/css/css-backgrounds/background-repeat/background-repeat-image-larger-than-positioning-area-crash.html @@ -0,0 +1,6 @@ +<!DOCTYPE html> +<link rel="help" href="https://github.com/servo/servo/issues/41130"> +<style> + #span {background-repeat: round; background-image: url("../../support/60x60-green.png") } +</style> +<span id="span">A</span>