Files
Martin Robinson cf2937e012 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 <[email protected]>

--

wpt-commits: 30df11e0dba74a7763f3b74b12c8da502d567155
wpt-pr: 56595
2025-12-15 07:48:26 +00:00
..