qzind / qz-print

Archive for legacy qz-print versions (1.8, 1.9). See https://github.com/qzind/tray for modern versions.
Other
141 stars 101 forks source link

Print HTML: Not render content under @media print setting #190

Closed vt09 closed 8 years ago

vt09 commented 8 years ago

Currently, html content under @media print style still appear in rendered file.

For example, we have setting as below.

  /*HIGHLIGHT/NOTIFICATION PAGE DOESN'T NEED TO BE PRINTED*/
  @media print {
      #page0 {
          display:none;
      }
  }
<div id="page0">
    <b style="font-size:40px;">Payment type of this order:</b>
    <h1>Cybersource_CreditCard</h1>
    <br/>
    <hr color="#000000" />
    <br/>
</div>

Do our printHTML support this style?

tresf commented 8 years ago

@vt09, QZ Tray does not currently render using the @media print style. We will look into the feasibility of implementing this as a default behavior in the future.

tresf commented 8 years ago

@vt09 this branch is no longer maintained for enhancements. Moving to the new tray repo. Please track this issue on our new 2.0 branch. Closing, moving to https://github.com/qzind/tray/issues/55.