diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index d8484156f..62a55b192 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -289,8 +289,90 @@ }, "enums": { "enum": { + "InsertPosition": { + "name": "InsertPosition", + "value": [ + "beforebegin", + "beforeend", + "afterbegin", + "afterend" + ] + }, + "FontDisplay": { + "name": "FontDisplay", + // https://w3c.github.io/csswg-drafts/css-fonts-4/#font-display-desc + "value": [ + "auto", + "block", + "swap", + "fallback", + "optional" + ] + }, "ClientType": { "name": "ClientTypes" + }, + "RTCStatsIceCandidatePairState": { + "value": [ + "inprogress" + ] + }, + "GlobalCompositeOperation": { + "name": "GlobalCompositeOperation", + "value": [ + "source-over", + "source-in", + "source-out", + "source-atop", + "destination-over", + "destination-in", + "destination-out", + "destination-atop", + "lighter", + "copy", + "xor", + "multiply", + "screen", + "overlay", + "darken", + "lighten", + "color-dodge", + "color-burn", + "hard-light", + "soft-light", + "difference", + "exclusion", + "hue", + "saturation", + "color", + "luminosity" + ] + }, + "PermissionName": { + "name": "PermissionName", + // This is a subset of the permissions defined in the spec: + // https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features + // Please add a feature only when it's supported by multiple engines. + "value": [ + // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API#browser_compatibility + "camera", + // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility + "geolocation", + // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API#browser_compatibility + "microphone", + // Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API#browser_compatibility + "midi", + // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility + "notifications", + // Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility + "persistent-storage", + // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility + "push", + // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility + "screen-wake-lock", + // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility + "storage-access" + ] } } }, diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 2c7f7e820..1b9559938 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -504,6 +504,14 @@ }, "TableKind": { "legacyNamespace": "WebAssembly" + }, + "ImageOrientation": { + "value": [ + // The spec removed this but it's still in browsers and WebKit doesn't support the new one. + // Keep it until it's safer to fully migrate. + // See https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1507#issuecomment-1454792451 + "none" + ] } } }, diff --git a/inputfiles/patches/ImageOrientation.kdl b/inputfiles/patches/ImageOrientation.kdl deleted file mode 100644 index fee446280..000000000 --- a/inputfiles/patches/ImageOrientation.kdl +++ /dev/null @@ -1,3 +0,0 @@ -enum ImageOrientation { - value "none" -} \ No newline at end of file diff --git a/inputfiles/patches/RTCStatsIceCandidatePairState.kdl b/inputfiles/patches/RTCStatsIceCandidatePairState.kdl deleted file mode 100644 index 6d5fbe4d4..000000000 --- a/inputfiles/patches/RTCStatsIceCandidatePairState.kdl +++ /dev/null @@ -1,3 +0,0 @@ -enum RTCStatsIceCandidatePairState { - value "inprogress" -} \ No newline at end of file diff --git a/inputfiles/patches/fontDisplay.kdl b/inputfiles/patches/fontDisplay.kdl deleted file mode 100644 index 97ad55e49..000000000 --- a/inputfiles/patches/fontDisplay.kdl +++ /dev/null @@ -1,8 +0,0 @@ -enum FontDisplay { - // https://w3c.github.io/csswg-drafts/css-fonts-4/#font-display-desc - value "auto" - value "block" - value "swap" - value "fallback" - value "optional" -} \ No newline at end of file diff --git a/inputfiles/patches/globalCompositeOperation.kdl b/inputfiles/patches/globalCompositeOperation.kdl deleted file mode 100644 index f3528f8bb..000000000 --- a/inputfiles/patches/globalCompositeOperation.kdl +++ /dev/null @@ -1,28 +0,0 @@ -enum GlobalCompositeOperation { - value "source-over" - value "source-in" - value "source-out" - value "source-atop" - value "destination-over" - value "destination-in" - value "destination-out" - value "destination-atop" - value "lighter" - value "copy" - value "xor" - value "multiply" - value "screen" - value "overlay" - value "darken" - value "lighten" - value "color-dodge" - value "color-burn" - value "hard-light" - value "soft-light" - value "difference" - value "exclusion" - value "hue" - value "saturation" - value "color" - value "luminosity" -} \ No newline at end of file diff --git a/inputfiles/patches/insertPosition.kdl b/inputfiles/patches/insertPosition.kdl deleted file mode 100644 index c08b9af86..000000000 --- a/inputfiles/patches/insertPosition.kdl +++ /dev/null @@ -1,6 +0,0 @@ -enum InsertPosition { - value "beforebegin" - value "beforeend" - value "afterbegin" - value "afterend" -} \ No newline at end of file diff --git a/inputfiles/patches/permissionName.kdl b/inputfiles/patches/permissionName.kdl deleted file mode 100644 index b0b62596c..000000000 --- a/inputfiles/patches/permissionName.kdl +++ /dev/null @@ -1,23 +0,0 @@ -enum PermissionName { - // This is a subset of the permissions defined in the spec: - // https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features - // Please add a feature only when it's supported by multiple engines. - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "camera" - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "geolocation" - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "microphone" - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "midi" - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "notifications" - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "persistent-storage" - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "push" - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "screen-wake-lock" - // Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility - value "storage-access" -} \ No newline at end of file