You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support the visibility property on tables, rows and cells #436
visibility (hidden, printonly, screenonly) has no effect on <table>, <tr> or <td>/<th>. The content is drawn as if visible and no optional content group is written.
Checked on gravitypdf with core fonts, uncompressed, looking for the text inside /OC /OC3 BDC … EMC:
Markup
Hidden?
<table style="visibility: hidden">
no
<tr style="visibility: hidden">
no
<td style="visibility: hidden">
no
<div style="visibility: hidden"> inside a cell
yes
<span style="visibility: hidden"> inside a cell
yes
<div style="visibility: hidden"> around a table
yes
The manual only lists visibility for block elements, inline tags and <img> (supported CSS), so this is a gap rather than a regression. Only BlockTag reads VISIBILITY when a tag opens, plus the inline path in Mpdf::setCSS(). The table tags never pass it on to the cell's content or its background and borders.
Workaround: wrap the table, or a cell's content, in a <div> or <span> with the visibility.
What support would need:
A cell's background and borders are drawn by the table code, not the cell's text flow. They'd need the cell's visibility too, including when a table is split across pages or repeats its header.
Activity