-
Notifications
You must be signed in to change notification settings - Fork 197
Add a print and print-events features (with print group)
#1039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
features/print.yml
Outdated
| @@ -0,0 +1,8 @@ | |||
| name: Printing | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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):
| 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.
There was a problem hiding this comment.
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.
foolip
left a comment
There was a problem hiding this 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.
Co-authored-by: Philip Jägenstedt <[email protected]>
print featureprint and print-events features (with print group)
This is a Baseline 2023 feature.