Skip to content

Commit 862d5af

Browse files
captainbrossetautonomeddbeck
authored
Add a feature for SVG support in the Async Clipboard API (#1727)
Co-authored-by: Dietrich Ayala <[email protected]> Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 2470363 commit 862d5af

7 files changed

+35
-17
lines changed

features/async-clipboard.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ compat_features:
2222
- api.ClipboardItem.ClipboardItem
2323
- api.ClipboardItem.getType
2424
- api.ClipboardItem.presentationStyle
25-
- api.ClipboardItem.type_image_svg_xml
26-
- api.ClipboardItem.type_web
2725
- api.ClipboardItem.types
2826
- api.Navigator.clipboard
2927
- api.Permissions.permission_clipboard-write

features/async-clipboard.yml.dist

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,3 @@ compat_features:
119119
# chrome_android: "64"
120120
# edge: "79"
121121
- api.Permissions.permission_clipboard-write
122-
123-
# baseline: false
124-
# support:
125-
# chrome: "104"
126-
# chrome_android: "104"
127-
# edge: "104"
128-
- api.ClipboardItem.type_web
129-
130-
# baseline: false
131-
# support:
132-
# chrome: "124"
133-
# chrome_android: "124"
134-
# edge: "124"
135-
- api.ClipboardItem.type_image_svg_xml

features/clipboard-custom-format.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Custom formats for clipboard items
2+
description: The `web ` prefix for `ClipboardItem` data types (also known as MIME types) allows reading and writing ununsanitized custom data from the device clipboard.
3+
spec: https://w3c.github.io/clipboard-apis/#optional-data-types-x
4+
group: clipboard
5+
compat_features:
6+
- api.ClipboardItem.type_web
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated from: clipboard-custom-format.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "104"
8+
chrome_android: "104"
9+
edge: "104"
10+
compat_features:
11+
- api.ClipboardItem.type_web

features/clipboard-svg.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: SVG clipboard items
2+
description: The `image/svg+xml` data type (also known as the MIME type) for `ClipboardItem` objects represents SVG data written to or read from the clipboard.
3+
spec: https://w3c.github.io/clipboard-apis/#optional-data-types-x
4+
group: clipboard
5+
compat_features:
6+
- api.ClipboardItem.type_image_svg_xml

features/clipboard-svg.yml.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated from: clipboard-svg.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "124"
8+
chrome_android: "124"
9+
edge: "124"
10+
compat_features:
11+
- api.ClipboardItem.type_image_svg_xml

features/clipboard-unsanitized-formats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Read unsanitized clipboard data
2-
description: The optional `formats.unsanitized` parameter of the `navigator.clipboard.read()` method reads unsanitized data from the system clipboard.
2+
description: The optional `formats.unsanitized` parameter of the `navigator.clipboard.read()` method reads unsanitized `text/html` data from the system clipboard.
33
spec: https://w3c.github.io/clipboard-apis/#dom-clipboardunsanitizedformats-unsanitized
44
group: clipboard
55
compat_features:

0 commit comments

Comments
 (0)