Chalarangelo/30-seconds-of-css

background-positioning with calc()

Lippe opened this issue · 3 comments

Lippe commented

I don't know where else to put this suggestion, so I'm starting a new "issue". Your background-positioning example works well but does not need to use calc(). It works with background-position alone and has a slightly different browser support comparing to calc(). Here is a pen to see how it works: https://codepen.io/Lippe/pen/bQNzzX

https://caniuse.com/#feat=css-background-offsets

That's correct. You can submit a PR to update the snippet, if you like.

Closing due to inactivity. Feel free to comment below to reopen...

lock commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for any follow-up tasks.