- From: Stephen Lavelle via GitHub <sysbot+gh@w3.org>
- Date: Tue, 09 Feb 2021 21:08:31 +0000
- To: public-css-archive@w3.org
> 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? Oh, this is timely. I've just run into trouble with "pixelated" and a window.devicePixelRatio of 1.5 on my desktop pc. ![image](https://user-images.githubusercontent.com/465632/107427805-10368280-6b22-11eb-90f2-b4caca2697e9.png) (cf https://github.com/increpare/PuzzleScript/issues/568 ) You can see some horizontal lines like on the "S" of "simple block pushing game" are thick, while the "start game" lines are thin, even though both are one pixel high. The behaviour I'd like to have available to me for the purpose of a game engine is for it to display the biggest possible image that will fit within the bounds of the canvas, centered with in, that ensure that all upscaled pixels are the same size. (It's a pretty standard approach). I've tried many different approaches to trying to get it to display "integer-multiple"-pixelated but they number of different display surfaces and zooming ratios that constitute the browser rendering stack make this feel like an impossible task. -- GitHub Notification of comment by increpare Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5837#issuecomment-776245187 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 9 February 2021 21:08:33 UTC