Tests: Replace background-near-zero-svg test with WPT import

This commit is contained in:
Tim Ledbetter 2025-07-02 16:43:26 +01:00 committed by Jelle Raaijmakers
commit 8fce09f521
Notes: github-actions[bot] 2025-07-02 16:45:30 +00:00
4 changed files with 10 additions and 7 deletions

View file

@ -0,0 +1,2 @@
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background: green"></div>

View file

@ -1,7 +0,0 @@
<!DOCTYPE html>
<link rel="match" href="../expected/background-size-near-zero-svg-ref.html">
<div style="background-image: url(../data/50x50-green.svg);
width: 100px; height: 100px; background-size: 0.2px 0.2px">
</div>
<!-- FIXME: Workaround to ensure CSS background-image is loaded before taking screenshot: https://github.com/LadybirdBrowser/ladybird/issues/3448 -->
<img style="display: none" src="../data/50x50-green.svg">

View file

@ -0,0 +1,8 @@
<!DOCTYPE html>
<title>SVG background with near-zero background-size</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#background-size">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#background-image">
<link rel="match" href="../../../../../expected/wpt-import/css/css-backgrounds/background-size/reference/background-size-near-zero-ref.html">
<div style="background-image: url(support/50x50-green.svg);
width: 100px; height: 100px; background-size: 0.2px 0.2px">
</div>

View file

Before

Width:  |  Height:  |  Size: 116 B

After

Width:  |  Height:  |  Size: 116 B

Before After
Before After