Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box-shadow and CSS transforms skew not supported? Fiddle provided #510

Closed
samsonkhisty opened this issue Jan 19, 2015 · 9 comments
Closed

Comments

@samsonkhisty
Copy link

Greetings,
http://jsfiddle.net/fuggfuggfugg/q572g6q0/4/ - This is my working example.
Tried searching but was unable to find anything with regards to skewed lines.

@samsonkhisty
Copy link
Author

updated: http://jsfiddle.net/fuggfuggfugg/q572g6q0/6/

@samsonkhisty
Copy link
Author

partly working code: http://codepen.io/fuggfuggfugg/pen/QwvvVq

@usmonster
Copy link
Contributor

Follow #221 for box shadow.

@samsonkhisty
Copy link
Author

Thanks.
Another update, this code works for skew. http://codepen.io/fuggfuggfugg/pen/ZYyBRv
My first example used :before & :after which probably isn't supported.

@usmonster
Copy link
Contributor

@samsonkhisty What browser(s) are you testing in? IE, for example, apparently doesn't support pseudoelements in its implementation of .getComputedStyle until IE11... Though I see the same issue you're having on Chrome, so you're probably right that it's something not fully (or not correctly) implemented in html2canvas..

@samsonkhisty
Copy link
Author

  • My very first codepen (http://jsfiddle.net/fuggfuggfugg/q572g6q0/4/) does not work in any browser
    • transform:skew specified in :before/:after is not applied
    • Although gradients specified in the psuedoselectors are applied in the generated canvas
  • The latest codepen (http://codepen.io/fuggfuggfugg/pen/ZYyBRv) works perfectly in Chrome, Safari and FF.
    • IE9: The HTML/CSS is perfect but canvas output on IE9 shows square boxes.
    • I haven't had the opportunity to test in any latest IE or Opera yet.

edit: I can attach some browser screenshots if you want.

@nyroDev
Copy link

nyroDev commented Feb 7, 2015

I'm also experiencing this issue with css transform.
I'm using a css similar to http://codepen.io/AtomicNoggin/pen/fEish

After digging a little in the code, I have the feeling that it has something to do with the clip definition of the rotated element, but not sure to get the whole.picture.
If the main dev could give me a hint on how to solve this problem, I could give it a try.

@usmonster
Copy link
Contributor

@samsonkhisty I just got a chance to check out your codepen example, and it looks fine in IE11 in both "Edge" and IE10 modes. IE9 mode throws some JS errors, though they seem to be coming from codepen itself, not html2canvas. According to their documentation page, they only support IE10+. Can you try with jsFiddle or jsbin?

@niklasvh
Copy link
Owner

Duplicate of #221

@niklasvh niklasvh marked this as a duplicate of #221 Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants