tc39 / proposal-built-in-modules

BSD 2-Clause "Simplified" License
892 stars 25 forks source link

May we please have a screenshot mechanism? #28

Closed StoneCypher closed 5 years ago

StoneCypher commented 5 years ago

As far as I know this isn't really possible. There's probably good security reasons, and stuff. That's largely over my head, TBH.

What if you required a DOM flag "screenshottable," failed if it contained any iframes or cors-tainted stuff, implied a white background, et cetera?

Being able to take images of what's going on in the browser is super useful and powerful

ljharb commented 5 years ago

Both the DOM, and images of any kind, are part of the web spec, and not part of the language itself. This seems like it might be better as a web proposal than a language proposal?

StoneCypher commented 5 years ago

fair point