Skip to content

KDL Enums #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 0 additions & 82 deletions inputfiles/addedTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
},
Expand Down
8 changes: 0 additions & 8 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions inputfiles/patches/ImageOrientation.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
enum ImageOrientation {
value "none"
}
3 changes: 3 additions & 0 deletions inputfiles/patches/RTCStatsIceCandidatePairState.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
enum RTCStatsIceCandidatePairState {
value "inprogress"
}
8 changes: 8 additions & 0 deletions inputfiles/patches/fontDisplay.kdl
Original file line number Diff line number Diff line change
@@ -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"
}
28 changes: 28 additions & 0 deletions inputfiles/patches/globalCompositeOperation.kdl
Original file line number Diff line number Diff line change
@@ -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"
}
6 changes: 6 additions & 0 deletions inputfiles/patches/insertPosition.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
enum InsertPosition {
value "beforebegin"
value "beforeend"
value "afterbegin"
value "afterend"
}
23 changes: 23 additions & 0 deletions inputfiles/patches/permissionName.kdl
Original file line number Diff line number Diff line change
@@ -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"
}
Loading