Skip to content

Commit 239eb5c

Browse files
authored
Revert "Integrate more enums"
This reverts commit 2552032.
1 parent 2552032 commit 239eb5c

8 files changed

+90
-71
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,90 @@
289289
},
290290
"enums": {
291291
"enum": {
292+
"InsertPosition": {
293+
"name": "InsertPosition",
294+
"value": [
295+
"beforebegin",
296+
"beforeend",
297+
"afterbegin",
298+
"afterend"
299+
]
300+
},
301+
"FontDisplay": {
302+
"name": "FontDisplay",
303+
// https://w3c.github.io/csswg-drafts/css-fonts-4/#font-display-desc
304+
"value": [
305+
"auto",
306+
"block",
307+
"swap",
308+
"fallback",
309+
"optional"
310+
]
311+
},
292312
"ClientType": {
293313
"name": "ClientTypes"
314+
},
315+
"RTCStatsIceCandidatePairState": {
316+
"value": [
317+
"inprogress"
318+
]
319+
},
320+
"GlobalCompositeOperation": {
321+
"name": "GlobalCompositeOperation",
322+
"value": [
323+
"source-over",
324+
"source-in",
325+
"source-out",
326+
"source-atop",
327+
"destination-over",
328+
"destination-in",
329+
"destination-out",
330+
"destination-atop",
331+
"lighter",
332+
"copy",
333+
"xor",
334+
"multiply",
335+
"screen",
336+
"overlay",
337+
"darken",
338+
"lighten",
339+
"color-dodge",
340+
"color-burn",
341+
"hard-light",
342+
"soft-light",
343+
"difference",
344+
"exclusion",
345+
"hue",
346+
"saturation",
347+
"color",
348+
"luminosity"
349+
]
350+
},
351+
"PermissionName": {
352+
"name": "PermissionName",
353+
// This is a subset of the permissions defined in the spec:
354+
// https://w3c.github.io/powerful-features-registry/#registry-table-of-powerful-features
355+
// Please add a feature only when it's supported by multiple engines.
356+
"value": [
357+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API#browser_compatibility
358+
"camera",
359+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#browser_compatibility
360+
"geolocation",
361+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API#browser_compatibility
362+
"microphone",
363+
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API#browser_compatibility
364+
"midi",
365+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility
366+
"notifications",
367+
// Gecko and Blink: https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#browser_compatibility
368+
"persistent-storage",
369+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Push_API#browser_compatibility
370+
"push",
371+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API#browser_compatibility
372+
"screen-wake-lock",
373+
// Full support: https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API#browser_compatibility
374+
"storage-access"
375+
]
294376
}
295377
}
296378
},

inputfiles/overridingTypes.jsonc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,14 @@
504504
},
505505
"TableKind": {
506506
"legacyNamespace": "WebAssembly"
507+
},
508+
"ImageOrientation": {
509+
"value": [
510+
// The spec removed this but it's still in browsers and WebKit doesn't support the new one.
511+
// Keep it until it's safer to fully migrate.
512+
// See https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1507#issuecomment-1454792451
513+
"none"
514+
]
507515
}
508516
}
509517
},

inputfiles/patches/ImageOrientation.kdl

Lines changed: 0 additions & 3 deletions
This file was deleted.

inputfiles/patches/RTCStatsIceCandidatePairState.kdl

Lines changed: 0 additions & 3 deletions
This file was deleted.

inputfiles/patches/fontDisplay.kdl

Lines changed: 0 additions & 8 deletions
This file was deleted.

inputfiles/patches/globalCompositeOperation.kdl

Lines changed: 0 additions & 28 deletions
This file was deleted.

inputfiles/patches/insertPosition.kdl

Lines changed: 0 additions & 6 deletions
This file was deleted.

inputfiles/patches/permissionName.kdl

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)