Skip to content

Commit dc0142d

Browse files
committed
Add SVG format to the spec.
1 parent c858eb2 commit dc0142d

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

index.bs

+22-2
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
18031803

18041804
On MacOS, follow the convention described below:
18051805

1806-
1. Assign NSHTMLPboardType to |wellKnownFormat|.
1806+
1. Assign NSPasteboardTypeHTML to |wellKnownFormat|.
18071807

18081808
On Linux, ChromeOS, and Android, follow the convention described below:
18091809

@@ -1823,6 +1823,20 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
18231823

18241824
1. Assign "image/png" to |wellKnownFormat|.
18251825

1826+
1. Else, if |mimeType|'s [=MIME type/essence=] is "image/svg+xml", then
1827+
1828+
On Windows, follow the convention described below:
1829+
1830+
1. Assign CFSTR_MIME_SVG_XML to |wellKnownFormat|.
1831+
1832+
On MacOS, follow the convention described below:
1833+
1834+
1. Assign UTTypeSVG to |wellKnownFormat|.
1835+
1836+
On Linux, ChromeOS, and Android, follow the convention described below:
1837+
1838+
1. Assign "image/svg+xml" to |wellKnownFormat|.
1839+
18261840
1. Return |wellKnownFormat|.
18271841

18281842
</div><!-- algorithm -->
@@ -1850,15 +1864,19 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
18501864

18511865
1. Else, if |osFormatName| "PNG", then set |mimeTypeString| to "image/png".
18521866

1867+
1. Else, if |osFormatName| CFSTR_MIME_SVG_XML, then set |mimeTypeString| to "image/svg+xml".
1868+
18531869

18541870
On MacOS, follow the convention described below:
18551871

18561872
1. If |osFormatName| is NSPasteboardTypeString, then set |mimeTypeString| to "text/plain".
18571873

1858-
1. Else, if |osFormatName| is NSHTMLPboardType, then set |mimeTypeString| to "text/html".
1874+
1. Else, if |osFormatName| is NSPasteboardTypeHTML, then set |mimeTypeString| to "text/html".
18591875

18601876
1. Else, if |osFormatName| NSPasteboardTypePNG, then set |mimeTypeString| to "image/png".
18611877

1878+
1. Else, if |osFormatName| UTTypeSVG, then set |mimeTypeString| to "image/svg+xml".
1879+
18621880

18631881
On Linux, ChromeOS, and Android, follow the convention described below:
18641882

@@ -1868,6 +1886,8 @@ url: https://w3c.github.io/permissions/#permissions-task-source; type: dfn;
18681886

18691887
1. Else, if |osFormatName| "image/png", then set |mimeTypeString| to "image/png".
18701888

1889+
1. Else, if |osFormatName| "image/svg+xml", then set |mimeTypeString| to "image/svg+xml".
1890+
18711891

18721892
1. Let |mimeType| be the result of [=parsing a MIME type=] given |mimeTypeString|.
18731893

0 commit comments

Comments
 (0)