Skip to content

Conversation

@ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented May 6, 2024

This is a Baseline 2023 feature.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label May 6, 2024
@ddbeck ddbeck mentioned this pull request May 6, 2024
32 tasks
@@ -0,0 +1,8 @@
name: Printing
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With a name this broad, how do we explain that CSS page breaking features aren't a part of it?

I think a group for printing might make more sense, and that we have one feature for print(), and another for the events. I assume the events also fire when the user initiates printing, so they're not tied to the API.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're following caniuse here, we could do this (and rename the feature to something like print-events):

Suggested change
name: Printing
name: Printing events

I think this is defensible since the spec specifies that beforeprint and afterprint must fire for before and after window.print() as well as when the user requests printing.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print + print-events + media-print features sounds good to me. The last one not in this PR however, we'll need to think more about media query features in general.

@ddbeck ddbeck requested a review from foolip May 6, 2024 16:25
Copy link
Collaborator

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A thought on the description, but feel free to merge with or without changes.

ddbeck and others added 2 commits May 8, 2024 06:59
@ddbeck ddbeck merged commit 5cb6e91 into web-platform-dx:main May 8, 2024
@ddbeck ddbeck deleted the print branch May 8, 2024 14:02
@ddbeck ddbeck changed the title Add a print feature Add a print and print-events features (with print group) May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants