Skip to content

Commit 5cb6e91

Browse files
ddbeckfoolip
andauthored
Add a print and print-events features (with print media group) (#1039)
Co-authored-by: Philip Jägenstedt <[email protected]>
1 parent 5109df4 commit 5cb6e91

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed

features/print-events.dist.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Generated from: print-events.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: Print events
5+
description: An alternative to `@media print` queries, the `beforeprint` and `afterprint` events allow you to change the page for printing and and restore the page after printing.
6+
group: print
7+
spec:
8+
- https://html.spec.whatwg.org/multipage/indices.html#event-afterprint
9+
- https://html.spec.whatwg.org/multipage/indices.html#event-beforeprint
10+
caniuse: beforeafterprint
11+
status:
12+
baseline: high
13+
baseline_low_date: 2019-09-19
14+
baseline_high_date: 2022-03-19
15+
support:
16+
chrome: "63"
17+
chrome_android: "63"
18+
edge: "12"
19+
firefox: "6"
20+
firefox_android: "6"
21+
safari: "13"
22+
safari_ios: "13"
23+
compat_features:
24+
- api.Window.afterprint_event
25+
- api.Window.beforeprint_event

features/print-events.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Print events
2+
description: An alternative to `@media print` queries, the `beforeprint` and `afterprint` events allow you to change the page for printing and and restore the page after printing.
3+
group: print
4+
spec:
5+
- https://html.spec.whatwg.org/multipage/indices.html#event-afterprint
6+
- https://html.spec.whatwg.org/multipage/indices.html#event-beforeprint
7+
caniuse: beforeafterprint
8+
compat_features:
9+
- api.Window.afterprint_event
10+
- api.Window.beforeprint_event

features/print.dist.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated from: print.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: window.print()
5+
description: The `window.print()` method opens the browser's print dialog.
6+
group: print
7+
spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#printing
8+
status:
9+
baseline: low
10+
baseline_low_date: 2023-06-06
11+
support:
12+
chrome: "1"
13+
chrome_android: "18"
14+
edge: "12"
15+
firefox: "1"
16+
firefox_android: "114"
17+
safari: "1.1"
18+
safari_ios: "1"
19+
compat_features:
20+
- api.Window.print

features/print.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: window.print()
2+
description: The `window.print()` method opens the browser's print dialog.
3+
group: print
4+
spec: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#printing
5+
compat_features:
6+
- api.Window.print

groups/print.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: Print media

0 commit comments

Comments
 (0)