-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Inconsistent border when some of side border is 'none' #1920
Comments
masak64
pushed a commit
to masak64/html2canvas
that referenced
this issue
Jul 31, 2019
Closed
niklasvh
added a commit
that referenced
this issue
Sep 22, 2019
niklasvh
added a commit
that referenced
this issue
Sep 22, 2019
pawelzwronek
pushed a commit
to pawelzwronek/html2canvas
that referenced
this issue
Oct 13, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please make sure you are testing with the latest release of html2canvas.
Old versions are not supported and issues reported for them will be closed.
Please follow the general troubleshooting steps first:
Bug reports:
Not all borders are present on dive when some border side is set to 'none'.
I have div in my application with following styles:
<div
style={{
border: '1px solid green',
borderBottom: 'none',
}}
>
Test screenshot
Then I use html2canvas to create screenshot of it:
html2canvas(document.body, {}).then(canvas => {
document.body.appendChild(canvas);
});
As result I got screenshot where bottom and left border is missing.
I have checked on version 1.0.0-rc1 and it works as expected.
Also I found workaround for this issue. I have to specify following style for div:
borderBottom: '0px solid', instead of 'none'.
then I get correct screenshot on 1.0.0-rc3.
Specifications:
The text was updated successfully, but these errors were encountered: