On Tuesday 2014-09-23 17:15 -0700, Justin Dolske wrote: > On 9/23/14 4:24 PM, Jonas Sicking wrote: > >>This makes the implementation considerably simpler, which is great. It > >>also means that "pixelated" will essentially just be a > >>more-interoperable version of "-moz-crisp-edges", for the time being. > > > >Would it make sense to have separate properties for "scale up" and > >"scale down"? With image-rendering being a shorthand for setting both? > > Maybe. > > We use this property in Firefox's UI, to make favicons look better > when upscaling on hidpi displays... NN upscaling looks better for > tiny icons, because "smooth" algorithms just make them look blurry. > I noted in bug 839923 comment 0 that it's not ideal to have the same > behavior for downscaling, and the issue tangentially came up again > in bug 1041845. > > So there's a plausible use case. OTOH, scaling tiny icons is just > generally not good with either algorithm, so having the capability > isn't really of much use. There are other scaling algorithms > explicitly designed to scale small/pixel-art images much better, but > AFAIK no browser actually implements such a thing.
Or, alternatively, it seems like the use case here would be addressed by doing what the spec said before. Is it really that much harder to do? Is it just that we'd need to add another value to pass through various layers of code, and then support that value? Or is supporting that value actually hard? (Also, I think 'crisp-edges' in the spec is intended to be algorithms better than nearest neighbor. I'm hesitant to unprefix '-moz-crisp-edges' immediately, although we might consider just removing it.) -David -- 𝄞 L. David Baron http://dbaron.org/ 𝄂 𝄢 Mozilla https://www.mozilla.org/ 𝄂 Before I built a wall I'd ask to know What I was walling in or walling out, And to whom I was like to give offense. - Robert Frost, Mending Wall (1914)
signature.asc
Description: Digital signature
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform