explainers icon indicating copy to clipboard operation
explainers copied to clipboard

preparePrint() : describe relationship with before/after print ?

Open bkardell opened this issue 4 months ago • 1 comments

When I shared this on social media, @tunetheweb was confused about the relationship to beforeprint - it probably could help to describe the relationship in the explainer since a few things can be worked around weirdly that way (though it doesn't work with .print() either)

bkardell avatar Sep 09 '25 21:09 bkardell

Currently code using beforeprint/afterprint can rely on the assumption that they are synchronously called after each other, so that changes done in beforeprint and reverted in afterprint are not actually visible on the page.

nicolo-ribaudo avatar Sep 30 '25 10:09 nicolo-ribaudo