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

Blurry images #9590

Closed
3 tasks done
kuubeu opened this issue Aug 31, 2023 · 0 comments · Fixed by #9591
Closed
3 tasks done

Blurry images #9590

kuubeu opened this issue Aug 31, 2023 · 0 comments · Fixed by #9591
Labels
🐛 bug Something isn't working, or isn't working as expected layout Issues related to alignment, positioning and spacing/margin/padding p3 We don't have visibility when this will be addressed.

Comments

@kuubeu
Copy link
Contributor

kuubeu commented Aug 31, 2023

Summary

When using 100% display scaling on non-retina screens, images included on the website appear blurry — they inherit the size of the actual image, but are then pushed in by the border around them, making them no longer pixel-aligned. This is caused by box-sizing: border-box being applied to the images.

URL

https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths
(This is where I encountered the issue, but it's present on all articles which include images)

Reproduction steps

  1. Go to an article containing an image, make sure your scaling and page zoom are set to 100%
  2. Look at the image
  3. It's blurry

Expected behavior

The borders around images should go outside, preserving the original size of the image and making it align with screen pixels.

Actual behavior

The borders around images go inside the image container, scaling it down ever so slightly and causing images to look blurry.

Device

Desktop

Browser

Chrome, Firefox, Gnome Web

Browser version

Stable

Operating system

Windows, Linux, ChromeOS

Screenshot

Current behavior:
old-blurry

Expected behavior:
new-sharp

Anything else?

Note: this increases the size of <img> elements by 1px in each direction.

Validations

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Aug 31, 2023
@caugner caugner added 🐛 bug Something isn't working, or isn't working as expected p3 We don't have visibility when this will be addressed. layout Issues related to alignment, positioning and spacing/margin/padding and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working, or isn't working as expected layout Issues related to alignment, positioning and spacing/margin/padding p3 We don't have visibility when this will be addressed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants