News for hackers. Stuff that matters.
Re:Responsive images by innocenat on Saturday June 12, 2021 @06:30AM (#27483391)
Doesn't CSS pixel scale based on your monitor scale setting? 1200px on a 4k monitor with 2x scaling ought to be roughly the same size as 1200px on FHD monitor with 1x scaling. Unless you are talking about source image, then it's intrinsics size.

And as other have said, use object-fit.

Re:Responsive images by bruce343434 on Saturday June 12, 2021 @01:05PM (#27485802)
I don't buy it. Old websites that have handcrafted tables, px-perfect to fit fullscreen on a vga monitor look really, really narrow and small on my screen.
Re:Responsive images by innocenat on Monday June 14, 2021 @02:04AM (#27499738)
Of course? If it's for 768px and your post-scaled resolution is 1920px then of course it's narrow and small.

The point is it should be the same on 2K monitor with 1x scaling AND 4k monitor with 2x scaling.

Re:Responsive images by foxpurple on Saturday June 12, 2021 @09:42AM (#27484429)
That’s exactly what it does.