Investigation requested for beforeprint/afterprint · Issue #5096 · whatwg/html · GitHub
Skip to content

Investigation requested for beforeprint/afterprint #5096

Open

Description

@annevk

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

  1. added
    good first issueIdeal for someone new to a WHATWG standard or software project
    needs testsMoving the issue forward requires someone to write tests
    on Nov 18, 2019
  2. Subhamvk commented on Mar 8, 2022

    @Subhamvk
  3. domenic commented on May 2, 2022

    @domenic
    Member

    Chromium apparently dispatches recursively on all descendants, but bails out for OOPIFs. Ick.

    It also appears beforeprint might be synchronous.

  4. tawandamoyo commented on Mar 13, 2024

    @tawandamoyo
  5. saurabhyuvi14-ai commented on Oct 9, 2025

    @saurabhyuvi14-ai
  6. Anusha3104 commented on Jun 6, 2026

    @Anusha3104
  7. removed
    good first issueIdeal for someone new to a WHATWG standard or software project
    on Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationStandard could be clearerneeds testsMoving the issue forward requires someone to write tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions