Tests/LibWeb: Fix flaky css background test

This test was introduced in 70b52e0994 and
was flaky in CI and on my local machine.
This commit is contained in:
InvalidUsernameException 2025-05-30 14:12:53 +02:00 committed by Tim Flynn
commit 52ba40f161
Notes: github-actions[bot] 2025-05-30 16:04:28 +00:00
2 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 595 B

Before After
Before After

View file

@ -7,9 +7,9 @@
width: 100px;
}
</style>
<!-- FIXME: Workaround to ensure CSS background-image is loaded before taking screenshot: https://github.com/LadybirdBrowser/ladybird/issues/3448 -->
<img src="../data/smiley.png"/>
<div id="a"></div>
<script>
internals.setBrowserZoom(1.2);
</script>
<!-- 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:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAIAAADITs03AAAAEklEQVQY02P4z8DAxDCKBwsGACnPAcZhKteIAAAAAElFTkSuQmCC"/>