DEV Community

Discussion on: 🎩 JavaScript Enhanced SCSS mixins! 🎩 - CSS element() function polyfill

Collapse
 
retyui profile image
Davyd NRB

You solution is useless when try to render iframe\img that use resources from another domain

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Hi David that's a pretty strong and damning statement 🤷‍♂️ I'm sorry your having a bad day?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

It's a pollyfill for a now defunct feature, let's be real it's not that usefull, and then theres this edge case where an Iframe which could literally do something like this is included I should expect it probably doesn't work no.

I am unsure what the limits of html to canvas are off the top of my head, something I read way back then mentions tainted canvas and iframe security yadeya it's been a while, I'm an old JavaScript ninja, give me a break 😉. There are proposals for screenshot APIs to replace the use of that library.

All in all this was one of my most popular posts and I think it's fun which is therefore useful.