Mpdf: Media query print not works

Created on 22 May 2018  路  4Comments  路  Source: mpdf/mpdf

Hello,
I have this css:
@media print {
table.form-footer { display: none; visibility: hidden;}
}

but it is always visible on pdf.
Am I doing something wrong?

HTMCSS support research needed

Most helpful comment

Oh. Missed this. Reopening.

All 4 comments

Please provide a complete example. See the examples of previous issues, for how a short example could look like. Thanks!
https://github.com/mpdf/mpdf/tree/development/tests/Issues

Further I'm not sure up to which level the css at tables is supported. Maybe you could find already more info in the manual. e.g. https://mpdf.github.io/css-stylesheets/supported-css.html

@media selector is not supported, see https://mpdf.github.io/css-stylesheets/supported-css.html

I'm sorry to make a comment, but according to the manual there is some support. But no idea if it is applicable for this case?
See https://mpdf.github.io/css-stylesheets/introduction.html#media-selectors
and https://mpdf.github.io/reference/mpdf-variables/cssselectmedia.html

Oh. Missed this. Reopening.

Was this page helpful?
0 / 5 - 0 ratings