Is it possible (with standard JS or some browser extensions) to get image data from a DOM element?
I am thinking about using, for example:
- create an offscreen DOM element
- dynamically populate it with CSS-style content
- get your image data
- use image data anyway:
- as a background (decorative repeating text)
- as a marker (unicode bullets)
- like a webgl texture (magic!)
- ...
Can this be done? Has there ever been a proposal for something like this?
source
share