1904labs / dom-to-image-more

Generates an image from a DOM node using HTML5 canvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work with ShadowDom/ShadowRoot.

blahblehblah opened this issue · comments

Use case: description, code

jsfiddle

Expected behavior

Actual behavior (stack traces, console logs etc)

Library version

Browsers

  • Chrome 49+
  • Firefox 45+

Looks like it works... what were you expecting it to look like?
image

commented

Managed to repro with v2.13.1 - https://jsfiddle.net/k7dfx3hy/1/. Doesn't throw an error but doesn't work either.

There's a nice example of shadow DOM in relative-time tags over at https://github.github.io/relative-time-element/examples/.

This library clones the fallback but picks up styles like width and height for the rendered shadow root.