I want to upscale my pixelart sprite with css and have it look crisp. But I have 3 issues with pixelart and css:
- Upscaling is blurry by default (has been solved many times already)
- CSS px is not the size of a screen's pixel (can't be solved apparently)
- I can't find a way to upscale my img by an integer factor so pixels stay perfect squares (what I struggle to do)

Since you need to upscale your picture by an integer factor in order for the pixels to stay squares, and since CSS doesn't give you the "true size of 1 pixel" you have to run your own calculations, depending on the end user's viewport pixel width.
Here is an example: