[Webkit-unassigned] [Bug 237656] New: IFrame Content only prints if IFrame is in viewport

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 9 07:31:39 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=237656

            Bug ID: 237656
           Summary: IFrame Content only prints if IFrame is in viewport
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Printing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tfayas at hbs.net

Created attachment 454236

  --> https://bugs.webkit.org/attachment.cgi?id=454236&action=review

Screen shot and sample HTML file that shows the issue

The content of an iframe on a page will only print if the iframe itself is within the viewport (as in they are looking at it on the screen).  Any iframe that is outside of the screen will not print.  This seems to be a relatively new bug as our client reported it used to work fine.  Firefox works fine, Edge/Chrome do not (Webkit), could not test on safari.  On both Chrome 99 and Edge 99.

To replicate, simply use the below (it's html encoded), or use the attached:

<h1>This iframe will print because it's in viewport</h1>
<iframe src="https://via.placeholder.com/600" width="600" height="600"></iframe>
<div style="height: 5000px;">Spacer to push other iframe lower on page</div>
<h1>This iframe won't print because it's out of viewport</h1>
<iframe src="https://via.placeholder.com/600" width="600" height="600"></iframe>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220309/258f9cb4/attachment.htm>


More information about the webkit-unassigned mailing list