Re: [csswg-drafts] [css-images-3] image-rendering:pixelated should not force "nearest neighbor" (or similar) when the scale factor is far from an interger (e.g. 150%) (#5837)

> So the question then is - are you doing something that really wants `pixelated`-style scaling, but centers on non-integer scale multiples? If so, can you provide more detail on this?

Sure. The problem is that in many cases, it is difficult to determine whether the scale factor is integer or non-integer at design time. The first problem is screen resolution: Websites are usually designed so that elements are the same real size on different screens, but that means what is 200% on a high-resolution screen may become 150% on a lower-resolution screen. Plus, [there are some high-resolution screens with non-integer dppx](https://dpi.lv/) (device pixels per CSS pixel), so even CSS pixels can be trusted.

Also, when I want to get a better look at an image (such as a retro game screenshot), I may manually zoom in on it in the browser. Therefore, I want even images that are normally displayed at 150% to have the `image-rendering:pixelated` property if they would look best pixelated at 400%.

-- 
GitHub Notification of comment by bbbbbbbbba
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5837#issuecomment-755743628 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 6 January 2021 22:09:12 UTC