mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
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 :^)
15 lines
566 B
HTML
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>
|