html2canvas doesn't work with display: -webkit-box
See original GitHub issueI’m trying to embed posts of my app, and then making screenshot of the embeded post, in the screenshot of the post i want to show only 5 lines of content text and 3 dotes at the end , therefor i’m using this code of CSS :
.limit-text-to-5-lines {
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
}
But i see nothing in content section of the screenshot, i tried without display: -webkit-box;
it shows me the text ,so it’s a conflicts , and not works, please some help!
Specifications:
- html2canvas version tested with: react
- Browser & version: all
- Operating system: mac
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
HTML2Canvas does not render full div, only what is visible on ...
When this code runs, it only renders what is visible on the screen. The #potenzial-page div is essentially the entire page, minus the...
Read more >Features - html2canvas
Discover the different features supported by html2canvas. Below is a list of all the supported CSS properties and values. background. background ...
Read more >jsFeedback implementation using html2canvas plugin (Tutorial)
It creates the view by traversing the DOM of the webpage. Technically it does not take the screenshot but simulate the view of...
Read more >Lessons Learned from Converting Html to Image - Medium
If you have this problem, removing all unnecessary CSS or CSS frameworks may solve the problem. html2canvas. Problem. html2canvas adds extra padding at...
Read more >html2canvas - Bountysource
Please make sure you are testing with the latest release of html2canvas. Old versions are not supported and issues reported for them will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
so, it’s better than nothing) what’s stopping u from changing css-code for urself?
CSS code instead of line-clamp:
If you want dots at the end, like line-clamp: