diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index 62a55b192..d8484156f 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -289,90 +289,8 @@ }, "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 1b9559938..2c7f7e820 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -504,14 +504,6 @@ }, "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 new file mode 100644 index 000000000..fee446280 --- /dev/null +++ b/inputfiles/patches/ImageOrientation.kdl @@ -0,0 +1,3 @@ +enum ImageOrientation { + value "none" +} \ No newline at end of file diff --git a/inputfiles/patches/RTCStatsIceCandidatePairState.kdl b/inputfiles/patches/RTCStatsIceCandidatePairState.kdl new file mode 100644 index 000000000..6d5fbe4d4 --- /dev/null +++ b/inputfiles/patches/RTCStatsIceCandidatePairState.kdl @@ -0,0 +1,3 @@ +enum RTCStatsIceCandidatePairState { + value "inprogress" +} \ No newline at end of file diff --git a/inputfiles/patches/fontDisplay.kdl b/inputfiles/patches/fontDisplay.kdl new file mode 100644 index 000000000..97ad55e49 --- /dev/null +++ b/inputfiles/patches/fontDisplay.kdl @@ -0,0 +1,8 @@ +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 new file mode 100644 index 000000000..f3528f8bb --- /dev/null +++ b/inputfiles/patches/globalCompositeOperation.kdl @@ -0,0 +1,28 @@ +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 new file mode 100644 index 000000000..c08b9af86 --- /dev/null +++ b/inputfiles/patches/insertPosition.kdl @@ -0,0 +1,6 @@ +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 new file mode 100644 index 000000000..b0b62596c --- /dev/null +++ b/inputfiles/patches/permissionName.kdl @@ -0,0 +1,23 @@ +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