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 :^)
This commit is contained in:
Jelle Raaijmakers 2025-05-09 14:51:48 +02:00 committed by Jelle Raaijmakers
commit 70b52e0994
Notes: github-actions[bot] 2025-05-09 19:40:20 +00:00
4 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<style>
* {
margin: 0;
}
</style>
<img src="../images/css-background-repeat-x-and-zoomed-ref.png">