Skip to content
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

Sync interfaces/ with @webref/idl 3.59.0 #50119

Merged
merged 1 commit into from
Jan 16, 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
54 changes: 54 additions & 0 deletions interfaces/css-fonts-5.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: CSS Fonts Module Level 5 (https://drafts.csswg.org/css-fonts-5/)

[Exposed=Window]
interface CSSFontFaceDescriptors : CSSStyleDeclaration {
attribute [LegacyNullToEmptyString] CSSOMString src;
attribute [LegacyNullToEmptyString] CSSOMString fontFamily;
attribute [LegacyNullToEmptyString] CSSOMString font-family;
attribute [LegacyNullToEmptyString] CSSOMString fontStyle;
attribute [LegacyNullToEmptyString] CSSOMString font-style;
attribute [LegacyNullToEmptyString] CSSOMString fontWeight;
attribute [LegacyNullToEmptyString] CSSOMString font-weight;
attribute [LegacyNullToEmptyString] CSSOMString fontStretch;
attribute [LegacyNullToEmptyString] CSSOMString font-stretch;
attribute [LegacyNullToEmptyString] CSSOMString fontWidth;
attribute [LegacyNullToEmptyString] CSSOMString font-width;
attribute [LegacyNullToEmptyString] CSSOMString fontSize;
attribute [LegacyNullToEmptyString] CSSOMString font-size;
attribute [LegacyNullToEmptyString] CSSOMString sizeAdjust;
attribute [LegacyNullToEmptyString] CSSOMString size-adjust;
attribute [LegacyNullToEmptyString] CSSOMString unicodeRange;
attribute [LegacyNullToEmptyString] CSSOMString unicode-range;
attribute [LegacyNullToEmptyString] CSSOMString fontFeatureSettings;
attribute [LegacyNullToEmptyString] CSSOMString font-feature-settings;
attribute [LegacyNullToEmptyString] CSSOMString fontVariationSettings;
attribute [LegacyNullToEmptyString] CSSOMString font-variation-settings;
attribute [LegacyNullToEmptyString] CSSOMString fontNamedInstance;
attribute [LegacyNullToEmptyString] CSSOMString font-named-instance;
attribute [LegacyNullToEmptyString] CSSOMString fontDisplay;
attribute [LegacyNullToEmptyString] CSSOMString font-display;
attribute [LegacyNullToEmptyString] CSSOMString fontLanguageOverride;
attribute [LegacyNullToEmptyString] CSSOMString font-language-override;
attribute [LegacyNullToEmptyString] CSSOMString ascentOverride;
attribute [LegacyNullToEmptyString] CSSOMString ascent-override;
attribute [LegacyNullToEmptyString] CSSOMString descentOverride;
attribute [LegacyNullToEmptyString] CSSOMString descent-override;
attribute [LegacyNullToEmptyString] CSSOMString lineGapOverride;
attribute [LegacyNullToEmptyString] CSSOMString line-gap-override;
attribute [LegacyNullToEmptyString] CSSOMString superscriptPositionOverride;
attribute [LegacyNullToEmptyString] CSSOMString superscript-position-override;
attribute [LegacyNullToEmptyString] CSSOMString subscriptPositionOverride;
attribute [LegacyNullToEmptyString] CSSOMString subscript-position-override;
attribute [LegacyNullToEmptyString] CSSOMString superscriptSizeOverride;
attribute [LegacyNullToEmptyString] CSSOMString superscript-size-override;
attribute [LegacyNullToEmptyString] CSSOMString subscriptSizeOverride;
attribute [LegacyNullToEmptyString] CSSOMString subscript-size-override;
};

[Exposed=Window]
interface CSSFontFaceRule : CSSRule {
[SameObject, PutForwards=cssText] readonly attribute CSSFontFaceDescriptors style;
};
38 changes: 0 additions & 38 deletions interfaces/css-fonts.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,6 @@
// (https://github.com/w3c/webref)
// Source: CSS Fonts Module Level 4 (https://drafts.csswg.org/css-fonts-4/)

[Exposed=Window]
interface CSSFontFaceDescriptors : CSSStyleDeclaration {
attribute [LegacyNullToEmptyString] CSSOMString src;
attribute [LegacyNullToEmptyString] CSSOMString fontFamily;
attribute [LegacyNullToEmptyString] CSSOMString font-family;
attribute [LegacyNullToEmptyString] CSSOMString fontStyle;
attribute [LegacyNullToEmptyString] CSSOMString font-style;
attribute [LegacyNullToEmptyString] CSSOMString fontWeight;
attribute [LegacyNullToEmptyString] CSSOMString font-weight;
attribute [LegacyNullToEmptyString] CSSOMString fontStretch;
attribute [LegacyNullToEmptyString] CSSOMString font-stretch;
attribute [LegacyNullToEmptyString] CSSOMString fontWidth;
attribute [LegacyNullToEmptyString] CSSOMString font-width;
attribute [LegacyNullToEmptyString] CSSOMString unicodeRange;
attribute [LegacyNullToEmptyString] CSSOMString unicode-range;
attribute [LegacyNullToEmptyString] CSSOMString fontFeatureSettings;
attribute [LegacyNullToEmptyString] CSSOMString font-feature-settings;
attribute [LegacyNullToEmptyString] CSSOMString fontVariationSettings;
attribute [LegacyNullToEmptyString] CSSOMString font-variation-settings;
attribute [LegacyNullToEmptyString] CSSOMString fontNamedInstance;
attribute [LegacyNullToEmptyString] CSSOMString font-named-instance;
attribute [LegacyNullToEmptyString] CSSOMString fontDisplay;
attribute [LegacyNullToEmptyString] CSSOMString font-display;
attribute [LegacyNullToEmptyString] CSSOMString fontLanguageOverride;
attribute [LegacyNullToEmptyString] CSSOMString font-language-override;
attribute [LegacyNullToEmptyString] CSSOMString ascentOverride;
attribute [LegacyNullToEmptyString] CSSOMString ascent-override;
attribute [LegacyNullToEmptyString] CSSOMString descentOverride;
attribute [LegacyNullToEmptyString] CSSOMString descent-override;
attribute [LegacyNullToEmptyString] CSSOMString lineGapOverride;
attribute [LegacyNullToEmptyString] CSSOMString line-gap-override;
};

[Exposed=Window]
interface CSSFontFaceRule : CSSRule {
[SameObject, PutForwards=cssText] readonly attribute CSSFontFaceDescriptors style;
};

partial interface CSSRule { const unsigned short FONT_FEATURE_VALUES_RULE = 14;
};
[Exposed=Window]
Expand Down
10 changes: 10 additions & 0 deletions interfaces/css-mixins.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@

[Exposed=Window]
interface CSSFunctionRule : CSSGroupingRule { };

[Exposed=Window]
interface CSSFunctionDescriptors : CSSStyleDeclaration {
attribute [LegacyNullToEmptyString] CSSOMString result;
};

[Exposed=Window]
interface CSSFunctionDeclarations : CSSRule {
[SameObject, PutForwards=cssText] readonly attribute CSSFunctionDescriptors style;
};
2 changes: 1 addition & 1 deletion interfaces/digital-credentials.idl
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ dictionary DigitalCredentialRequest {
[Exposed=Window, SecureContext]
interface DigitalCredential : Credential {
readonly attribute DOMString protocol;
readonly attribute object data;
[SameObject] readonly attribute object data;
};
1 change: 1 addition & 0 deletions interfaces/fedcm.idl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ dictionary IdentityProviderRequestOptions : IdentityProviderConfig {
USVString nonce;
DOMString loginHint;
DOMString domainHint;
sequence<USVString> fields;
any params;
};

Expand Down
2 changes: 2 additions & 0 deletions interfaces/html.idl
Original file line number Diff line number Diff line change
Expand Up @@ -1222,9 +1222,11 @@ interface HTMLDialogElement : HTMLElement {

[CEReactions] attribute boolean open;
attribute DOMString returnValue;
[CEReactions] attribute DOMString closedBy;
[CEReactions] undefined show();
[CEReactions] undefined showModal();
[CEReactions] undefined close(optional DOMString returnValue);
[CEReactions] undefined requestClose(optional DOMString returnValue);
};

[Exposed=Window]
Expand Down
2 changes: 1 addition & 1 deletion interfaces/mediacapture-surface-control.idl
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ partial interface CaptureController {

partial interface CaptureController {
constructor();
Promise<undefined> forwardWheel(HTMLElement element);
Promise<undefined> forwardWheel(HTMLElement? element);
};
1 change: 1 addition & 0 deletions interfaces/permissions-policy.idl
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ interface PermissionsPolicyViolationReportBody : ReportBody {
readonly attribute long? lineNumber;
readonly attribute long? columnNumber;
readonly attribute DOMString disposition;
readonly attribute DOMString? allowAttribute;
};
44 changes: 37 additions & 7 deletions interfaces/shared-storage.idl
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,49 @@ partial interface Window {
[SecureContext] readonly attribute SharedStorage? sharedStorage;
};

[Exposed=(Window,SharedStorageWorklet)]
interface SharedStorageModifierMethod {};

[Exposed=(Window, SharedStorageWorklet)]
interface SharedStorageSetMethod : SharedStorageModifierMethod {
constructor(DOMString key, DOMString value, optional SharedStorageSetMethodOptions options = {});
};

[Exposed=(Window, SharedStorageWorklet)]
interface SharedStorageAppendMethod : SharedStorageModifierMethod {
constructor(DOMString key, DOMString value, optional SharedStorageModifierMethodOptions options = {});
};

[Exposed=(Window, SharedStorageWorklet)]
interface SharedStorageDeleteMethod : SharedStorageModifierMethod {
constructor(DOMString key, optional SharedStorageModifierMethodOptions options = {});
};

[Exposed=(Window, SharedStorageWorklet)]
interface SharedStorageClearMethod : SharedStorageModifierMethod {
constructor(optional SharedStorageModifierMethodOptions options = {});
};

dictionary SharedStorageModifierMethodOptions {
DOMString withLock;
};

dictionary SharedStorageSetMethodOptions : SharedStorageModifierMethodOptions {
boolean ignoreIfPresent;
};

[Exposed=(Window,SharedStorageWorklet)]
interface SharedStorage {
Promise<any> set(DOMString key,
DOMString value,
optional SharedStorageSetMethodOptions options = {});
Promise<any> append(DOMString key,
DOMString value);
Promise<any> delete(DOMString key);
Promise<any> clear();
DOMString value,
optional SharedStorageModifierMethodOptions options = {});
Promise<any> delete(DOMString key, optional SharedStorageModifierMethodOptions options = {});
Promise<any> clear(optional SharedStorageModifierMethodOptions options = {});
Promise<any> batchUpdate(sequence<SharedStorageModifierMethod> methods,
optional SharedStorageModifierMethodOptions options = {});

[Exposed=Window]
Promise<SharedStorageResponse> selectURL(DOMString name,
Expand Down Expand Up @@ -76,10 +110,6 @@ interface SharedStorage {
async iterable<DOMString, DOMString>;
};

dictionary SharedStorageSetMethodOptions {
boolean ignoreIfPresent = false;
};

dictionary SharedStoragePrivateAggregationConfig {
USVString aggregationCoordinatorOrigin;
USVString contextId;
Expand Down
12 changes: 11 additions & 1 deletion interfaces/webnn.idl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ interface ML {

typedef record<USVString, MLTensor> MLNamedTensors;

dictionary MLContextLostInfo {
DOMString message;
};

[SecureContext, Exposed=(Window, DedicatedWorker)]
interface MLContext {
undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
Expand All @@ -46,6 +50,10 @@ interface MLContext {
undefined writeTensor(MLTensor tensor, AllowSharedBufferSource inputData);

MLOpSupportLimits opSupportLimits();

undefined destroy();

readonly attribute Promise<MLContextLostInfo> lost;
};

dictionary MLOpSupportLimits {
Expand All @@ -71,7 +79,9 @@ dictionary MLSingleInputSupportLimits {
};

[SecureContext, Exposed=(Window, DedicatedWorker)]
interface MLGraph {};
interface MLGraph {
undefined destroy();
};

enum MLInputOperandLayout {
"nchw",
Expand Down
Loading