ladybird/Tests/LibWeb/Screenshot/input/css-background-repeat-x-and-zoomed.html
Jelle Raaijmakers 70b52e0994 LibWeb: Use efficient background repeat path for either direction
We're able to efficiently draw repeated bitmaps through Skia, but for
backgrounds we only did so if the background was `repeat-x` _and_
`repeat-y`, and not if just one was set. This meant that for backgrounds
that were only repeating in one direction, we were taking the slow path.
Turns out that this slow path also produced graphical artifacts when
zooming in and out, so let's not do that :^)
2025-05-09 21:37:48 +02:00

15 lines
566 B
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/css-background-repeat-x-and-zoomed-ref.html" />
<style>
#a {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkCAIAAADITs03AAAAEklEQVQY02P4z8DAxDCKBwsGACnPAcZhKteIAAAAAElFTkSuQmCC) repeat-x;
height: 100px;
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>