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

1 pixel line around some background images #8

Open
drzax opened this issue May 15, 2023 · 0 comments
Open

1 pixel line around some background images #8

drzax opened this issue May 15, 2023 · 0 comments

Comments

@drzax
Copy link
Member

drzax commented May 15, 2023

In some browsers at some resolutions there appears to be a faint 1px line around background block media.

image

This is likely some kind of anti-aliasing rounding error that lets part of the background peak through around the image.

A hacky fix is to scale the <img element, but this might have other implications (for example, adjacent images that are intended to line up perfectly no longer doing so) and 1% could be a pretty large change for some images. For the article I was testing with a much smaller 0.2% scale still works.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant