Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiling background image does not loop when scrolling until redraw (e.g., by resizing) #2409

Open
1 task
dakrk opened this issue Nov 17, 2024 · 0 comments
Open
1 task
Labels
bug Something isn't working has repro We have a way to reproduce this bug. painting Related to painting subsystem

Comments

@dakrk
Copy link

dakrk commented Nov 17, 2024

Summary

A tiling background does not loop past the initial viewport region when you scroll until you force a redraw by resizing the window or similar.

Operating system

Linux

Steps to reproduce

Put a small background image on a body with a tall height, enough so you can scroll. (Please see provided reduced test case.)

Expected behavior

Background image should continue seamlessly looping when you scroll.

Actual behavior

When you scroll past the initial viewport region, Ladybird then shows only the background color, instead of the background image continuing to tile, until it fully redraws.

URL for a reduced test case

N/A

HTML/SVG/etc. source for a reduced test case

<body>
	<style>
		body {
			background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAAEUlEQVQI12NwgQAGBvIYMAAAFgoNBd2e9WYAAAAASUVORK5CYII=);
			height: 5000px;
		}
	</style>
</body>

Log output and (if possible) backtrace

N/A

Screenshots or screen recordings

In this screenshot took after scrolling, the white region should not be white:
image

Build flags or config settings

No response

Contribute a patch?

  • I’ll contribute a patch for this myself.
@AtkinsSJ AtkinsSJ added bug Something isn't working painting Related to painting subsystem has repro We have a way to reproduce this bug. labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has repro We have a way to reproduce this bug. painting Related to painting subsystem
Projects
None yet
Development

No branches or pull requests

2 participants