[ad_1]
I am making an attempt to make use of upscaled pixel artwork as my web page background however I’ve discovered that on my iPhone it appears to be like blurry. I’ve used image-rendering: pixelated; with seemingly no impact, nevertheless I’ve discovered that by making background-size: cowl or comprise; will trigger the upscaled picture to nonetheless seem pixelated. Sadly I need a repeating background that’s upscaled by a precise pixel quantity to keep up facet ratio. Right here is the outcome on iPhone browsers and right here is the right outcome on desktop browsers. When you can drop any data about how/why this occurs and any workarounds you are conscious of, or if it is also a difficulty with android – let me know.
This is the code from the instance:
*{
image-rendering:pixelated;
}
physique{
background-image: url('https://i.stack.imgur.com/FqpwS.gif');
background-repeat:repeat;
background-size: 256px 128px;
}
#check{
define: 1px purple stable;
background-image: url('https://i.stack.imgur.com/FqpwS.gif');
background-size: cowl;
width:100%;
top: 100px;
<physique>
<div id="check">
</div>
</physique>
[ad_2]
