Y
Hacker News
new
|
ask
|
show
|
jobs
by
lecarore
2496 days ago
It seems obvious in insight but I never used this before. An interesting front end trick, though adding gradient backgrounds is something I avoid as it's mostly eye candy
1 comments
globuous
2496 days ago
It does, thought i’d never imagined the browser did any interpolation at all !
Neat trick, thanks for the share ;)
link
sp332
2496 days ago
They didn't used to, because it slowed down rendering. Then they started blurring stuff which worked well most of the time but not e.g. for retro artists who wanted the pixely look. So eventually they added some CSS properties to control it.
https://builtvisible.com/image-scaling-in-css/
https://caniuse.com/#search=image%20rendering
link
globuous
2487 days ago
wow, I just learned so much from such a simple concept !! Thanks for the links ;)
link
Neat trick, thanks for the share ;)