Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
"will-change: transform" on an image plus "overflow: hidden" on its container sometimes crops the image by 1 pixel
Post Body

Take a look at this demo: https://codepen.io/will_beaumont/full/Baxopaj

If you resize your window, you should see the image on the left usually gets cropped by 1 pixel (which edge gets cropped depends on the window dimensions), whereas the image on the right never gets cropped. The image on the left has the CSS will-change: transform and the one on the right has will-change: unset, but for both of them their containing links have the property overflow: hidden. I've tested this in Chrome and Firefox. It's bizarre to me.

I want to use will-change because of the mouseover zoom effect, and I absolutely need overflow: hidden so that the zoom looks proper (i.e., the image gets cropped within its original dimensions). Any ideas why having will-change set would do this? On a side note, I religiously use will-change whenever there's the possibility of a style change, but I've read that it's possible to overdo it.

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,125
Link Karma
983
Comment Karma
4,129
Profile updated: 3 days ago
Posts updated: 8 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago