You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kuubeu opened this issue
Aug 31, 2023
· 0 comments
· Fixed by #9591
Labels
🐛 bugSomething isn't working, or isn't working as expectedlayoutIssues related to alignment, positioning and spacing/margin/paddingp3We don't have visibility when this will be addressed.
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.
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
🐛 bugSomething isn't working, or isn't working as expectedlayoutIssues related to alignment, positioning and spacing/margin/paddingp3We don't have visibility when this will be addressed.
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
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:
Expected behavior:
Anything else?
Note: this increases the size of
<img>
elements by 1px in each direction.Validations
The text was updated successfully, but these errors were encountered: