4 ms·
> What if we had an API that could just provide us with the contents of a div as a bitmap Can't do that for security reasons: it would open the CSS :visited in
by pcwalton 12y ago
> What if we had an API that could just provide us with the contents of a div as a bitmap
Can't do that for security reasons: it would open the CSS :visited info leak. Pages could determine which other pages you've visited by inspecting the colors of visited links.
- jay_kyburz 12y agowoah, crazy edge case. I guess you could render the page without the :visited style. Thinking about it more though since I posted. I don't think anybody would use it the way I described, I think people would simply end up rendering everything to bitmaps, and manage their own layout and animation in the canvas. I might try that for my next game.