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
Investigation requested for beforeprint/afterprint #5096
If you have A nests B nests C nests D and the user decides to print B (not sure any user agent provides UI for that, but let's assume there is), the specification suggests events in B and C, not D. Is that really what we want?
Also, if you have A nests B1 and B2, what's the order of the events? Does it matter if either B1 or B2 is cross-site? (Is it quicker than postMessage()?)
Marking this as a good first issue as the first step needed here is writing tests for these scenarios, which is relatively straightforward, albeit a bit tedious perhaps. If there are any questions around getting started with tests, do let me know.
Activity
Subhamvk commentedon Mar 8, 2022
domenic commentedon May 2, 2022
Chromium apparently dispatches recursively on all descendants, but bails out for OOPIFs. Ick.
It also appears beforeprint might be synchronous.
tawandamoyo commentedon Mar 13, 2024
saurabhyuvi14-ai commentedon Oct 9, 2025
Anusha3104 commentedon Jun 6, 2026