Tables with linear gradient background do not render correctly
See original GitHub issueHi There!
I am creating a PDF with Shower Framework. There is a table in the HTML file. Only the last row in the table is being rendered when the PDF is viewed on Chrome. The table appears to be fine when the PDF is viewed on a normal viewer. Attached is the image of the issue.
Below is the HTML used
<table>
<tr>
<th scope="col">Locavore</th>
<th>Umami</th>
<th>Helvetica</th>
<th>Vegan</th>
</tr>
<tr>
<th scope="row">Fingerstache</th>
<td>Kale</td>
<td>Chips</td>
<td>Keytar</td>
</tr>
<tr>
<th scope="row">Sriracha</th>
<td>Gluten-free</td>
<td>Ennui</td>
<td>Keffiyeh</td>
</tr>
<tr>
<th scope="row">Thundercats</th>
<td>Jean</td>
<td>Shorts</td>
<td>Biodiesel</td>
</tr>
<tr>
<th scope="row">Terry</th>
<td>Richardson</td>
<td>Swag</td>
<td>Blog</td>
</tr>
</table>
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
css - Setting a conditional background linear gradient for ...
I'm trying to stylize a row in my react table so that when a certain row's data changes, the ...
Read more >linear-gradient() - CSS: Cascading Style Sheets | MDN
The linear-gradient() CSS function creates an image consisting of a progressive transition between two or more colors along a straight line.
Read more >Setting Backgrounds & Gradients - Learn to Code HTML & CSS
Within CSS, gradient backgrounds are treated as background images. We can create a gradient using the background or background-image properties, just like a ......
Read more >Table row (TR) background is repeat separately on every cell
What steps will reproduce the problem? 1. Create a table, a row, and some cells. 2. Set a css background image to the...
Read more >Outlook Email Rendering Issues and How to Solve Them
Outlook emails not displaying HTML emails properly has been a staple in the ... Outlook does not support CSS styles for widths and...
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
Thanks a lot for the detailed use case. I’ve been able to reproduce.
It seems it is caused by the linear gradient background in your styles:
Removing it makes the presentation exporting fine.
Linear gradient rendering in PDF is still problematic in PhantomJS and already affects DeckTape (#61).
Let me know if that’s acceptable to change the background style as a work-around solution.
I’m glad it works for you!