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 not fully included in result image png. (image cropped) #77

Closed
1 task done
dweeves opened this issue Jul 28, 2022 · 1 comment
Closed
1 task done

Comments

@dweeves
Copy link

dweeves commented Jul 28, 2022

Use case: calculating size of element with box shadow

Even using the "style" option or "wrapper" trick, i cannot have the full rendering of my element including its box shadow
jsfiddle

Expected behavior

The resulting image should include the box shadow area.

Actual behavior (stack traces, console logs etc)

Library version

Browsers

  • Chrome 103+
@dweeves
Copy link
Author

dweeves commented Jul 28, 2022

I found a way, using padding & explicit box-model

here is the fiddle: https://jsfiddle.net/rsj5cx1b/

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

1 participant