@webref/idl 3.35.0 → 3.35.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css-fonts.idl CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  [Exposed=Window]
7
7
  interface CSSFontFaceRule : CSSRule {
8
- readonly attribute CSSStyleDeclaration style;
8
+ readonly attribute CSSStyleDeclaration style;
9
9
  };
10
10
 
11
11
  partial interface CSSRule { const unsigned short FONT_FEATURE_VALUES_RULE = 14;
@@ -25,7 +25,7 @@ interface CSSFontFeatureValuesRule : CSSRule {
25
25
  interface CSSFontFeatureValuesMap {
26
26
  maplike<CSSOMString, sequence<unsigned long>>;
27
27
  undefined set(CSSOMString featureValueName,
28
- (unsigned long or sequence<unsigned long>) values);
28
+ (unsigned long or sequence<unsigned long>) values);
29
29
  };
30
30
 
31
31
  [Exposed=Window]interface CSSFontPaletteValuesRule : CSSRule {
@@ -3,6 +3,10 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSS Transitions Level 2 (https://drafts.csswg.org/css-transitions-2/)
5
5
 
6
+ [Exposed=Window]
7
+ interface CSSStartingStyleRule : CSSGroupingRule {
8
+ };
9
+
6
10
  [Exposed=Window]
7
11
  interface CSSTransition : Animation {
8
12
  readonly attribute CSSOMString transitionProperty;
@@ -35,7 +35,7 @@ enum WellKnownDirectory {
35
35
  typedef (WellKnownDirectory or FileSystemHandle) StartInDirectory;
36
36
 
37
37
  dictionary FilePickerAcceptType {
38
- USVString description;
38
+ USVString description = "";
39
39
  record<USVString, (USVString or sequence<USVString>)> accept;
40
40
  };
41
41
 
package/html.idl CHANGED
@@ -131,7 +131,7 @@ interface HTMLElement : Element {
131
131
  // The popover API
132
132
  undefined showPopover();
133
133
  undefined hidePopover();
134
- undefined togglePopover(optional boolean force);
134
+ boolean togglePopover(optional boolean force);
135
135
  [CEReactions] attribute DOMString? popover;
136
136
  };
137
137
 
@@ -1751,6 +1751,7 @@ interface Window : EventTarget {
1751
1751
  attribute DOMString name;
1752
1752
  [PutForwards=href, LegacyUnforgeable] readonly attribute Location location;
1753
1753
  readonly attribute History history;
1754
+ readonly attribute Navigation navigation;
1754
1755
  readonly attribute CustomElementRegistry customElements;
1755
1756
  [Replaceable] readonly attribute BarProp locationbar;
1756
1757
  [Replaceable] readonly attribute BarProp menubar;
@@ -1841,6 +1842,156 @@ interface History {
1841
1842
  undefined replaceState(any data, DOMString unused, optional USVString? url = null);
1842
1843
  };
1843
1844
 
1845
+ [Exposed=Window]
1846
+ interface Navigation : EventTarget {
1847
+ sequence<NavigationHistoryEntry> entries();
1848
+ readonly attribute NavigationHistoryEntry? currentEntry;
1849
+ undefined updateCurrentEntry(NavigationUpdateCurrentEntryOptions options);
1850
+ readonly attribute NavigationTransition? transition;
1851
+
1852
+ readonly attribute boolean canGoBack;
1853
+ readonly attribute boolean canGoForward;
1854
+
1855
+ NavigationResult navigate(USVString url, optional NavigationNavigateOptions options = {});
1856
+ NavigationResult reload(optional NavigationReloadOptions options = {});
1857
+
1858
+ NavigationResult traverseTo(DOMString key, optional NavigationOptions options = {});
1859
+ NavigationResult back(optional NavigationOptions options = {});
1860
+ NavigationResult forward(optional NavigationOptions options = {});
1861
+
1862
+ attribute EventHandler onnavigate;
1863
+ attribute EventHandler onnavigatesuccess;
1864
+ attribute EventHandler onnavigateerror;
1865
+ attribute EventHandler oncurrententrychange;
1866
+ };
1867
+
1868
+ dictionary NavigationUpdateCurrentEntryOptions {
1869
+ required any state;
1870
+ };
1871
+
1872
+ dictionary NavigationOptions {
1873
+ any info;
1874
+ };
1875
+
1876
+ dictionary NavigationNavigateOptions : NavigationOptions {
1877
+ any state;
1878
+ NavigationHistoryBehavior history = "auto";
1879
+ };
1880
+
1881
+ dictionary NavigationReloadOptions : NavigationOptions {
1882
+ any state;
1883
+ };
1884
+
1885
+ dictionary NavigationResult {
1886
+ Promise<NavigationHistoryEntry> committed;
1887
+ Promise<NavigationHistoryEntry> finished;
1888
+ };
1889
+
1890
+ enum NavigationHistoryBehavior {
1891
+ "auto",
1892
+ "push",
1893
+ "replace"
1894
+ };
1895
+
1896
+ enum NavigationType {
1897
+ "push",
1898
+ "replace",
1899
+ "reload",
1900
+ "traverse"
1901
+ };
1902
+
1903
+ [Exposed=Window]
1904
+ interface NavigationHistoryEntry : EventTarget {
1905
+ readonly attribute USVString? url;
1906
+ readonly attribute DOMString key;
1907
+ readonly attribute DOMString id;
1908
+ readonly attribute long long index;
1909
+ readonly attribute boolean sameDocument;
1910
+
1911
+ any getState();
1912
+
1913
+ attribute EventHandler ondispose;
1914
+ };
1915
+
1916
+ [Exposed=Window]
1917
+ interface NavigationTransition {
1918
+ readonly attribute NavigationType navigationType;
1919
+ readonly attribute NavigationHistoryEntry from;
1920
+ readonly attribute Promise<undefined> finished;
1921
+ };
1922
+
1923
+ [Exposed=Window]
1924
+ interface NavigateEvent : Event {
1925
+ constructor(DOMString type, NavigateEventInit eventInitDict);
1926
+
1927
+ readonly attribute NavigationType navigationType;
1928
+ readonly attribute NavigationDestination destination;
1929
+ readonly attribute boolean canIntercept;
1930
+ readonly attribute boolean userInitiated;
1931
+ readonly attribute boolean hashChange;
1932
+ readonly attribute AbortSignal signal;
1933
+ readonly attribute FormData? formData;
1934
+ readonly attribute DOMString? downloadRequest;
1935
+ readonly attribute any info;
1936
+
1937
+ undefined intercept(optional NavigationInterceptOptions options = {});
1938
+ undefined scroll();
1939
+ };
1940
+
1941
+ dictionary NavigateEventInit : EventInit {
1942
+ NavigationType navigationType = "push";
1943
+ required NavigationDestination destination;
1944
+ boolean canIntercept = false;
1945
+ boolean userInitiated = false;
1946
+ boolean hashChange = false;
1947
+ required AbortSignal signal;
1948
+ FormData? formData = null;
1949
+ DOMString? downloadRequest = null;
1950
+ any info;
1951
+ };
1952
+
1953
+ dictionary NavigationInterceptOptions {
1954
+ NavigationInterceptHandler handler;
1955
+ NavigationFocusReset focusReset;
1956
+ NavigationScrollBehavior scroll;
1957
+ };
1958
+
1959
+ enum NavigationFocusReset {
1960
+ "after-transition",
1961
+ "manual"
1962
+ };
1963
+
1964
+ enum NavigationScrollBehavior {
1965
+ "after-transition",
1966
+ "manual"
1967
+ };
1968
+
1969
+ callback NavigationInterceptHandler = Promise<undefined> ();
1970
+
1971
+ [Exposed=Window]
1972
+ interface NavigationDestination {
1973
+ readonly attribute USVString url;
1974
+ readonly attribute DOMString key;
1975
+ readonly attribute DOMString id;
1976
+ readonly attribute long long index;
1977
+ readonly attribute boolean sameDocument;
1978
+
1979
+ any getState();
1980
+ };
1981
+
1982
+ [Exposed=Window]
1983
+ interface NavigationCurrentEntryChangeEvent : Event {
1984
+ constructor(DOMString type, NavigationCurrentEntryChangeEventInit eventInitDict);
1985
+
1986
+ readonly attribute NavigationType? navigationType;
1987
+ readonly attribute NavigationHistoryEntry from;
1988
+ };
1989
+
1990
+ dictionary NavigationCurrentEntryChangeEventInit : EventInit {
1991
+ NavigationType? navigationType = null;
1992
+ required NavigationHistoryEntry from;
1993
+ };
1994
+
1844
1995
  [Exposed=Window]
1845
1996
  interface PopStateEvent : Event {
1846
1997
  constructor(DOMString type, optional PopStateEventInit eventInitDict = {});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.35.0",
4
+ "version": "3.35.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -8,12 +8,13 @@ partial interface MediaDevices {
8
8
  };
9
9
 
10
10
  enum CaptureStartFocusBehavior {
11
+ "focus-capturing-application",
11
12
  "focus-captured-surface",
12
13
  "no-focus-change"
13
14
  };
14
15
 
15
16
  [Exposed=Window, SecureContext]
16
- interface CaptureController {
17
+ interface CaptureController : EventTarget {
17
18
  constructor();
18
19
  undefined setFocusBehavior(CaptureStartFocusBehavior focusBehavior);
19
20
  };
@@ -16,6 +16,10 @@ dictionary SecurePaymentConfirmationRequest {
16
16
  boolean showOptOut;
17
17
  };
18
18
 
19
+ partial interface PaymentRequest {
20
+ static Promise<boolean> isSecurePaymentConfirmationAvailable();
21
+ };
22
+
19
23
  partial dictionary AuthenticationExtensionsClientInputs {
20
24
  AuthenticationExtensionsPaymentInputs payment;
21
25
  };
package/turtledove.idl CHANGED
@@ -13,15 +13,13 @@ dictionary AuctionAd {
13
13
  any metadata;
14
14
  };
15
15
 
16
- dictionary AuctionAdInterestGroup {
16
+ dictionary GenerateBidInterestGroup {
17
17
  required USVString owner;
18
18
  required USVString name;
19
19
  required double lifetimeMs;
20
20
 
21
- double priority = 0.0;
22
21
  boolean enableBiddingSignalsPrioritization = false;
23
22
  record<DOMString, double> priorityVector;
24
- record<DOMString, double> prioritySignalsOverrides;
25
23
 
26
24
  DOMString executionMode = "compatibility";
27
25
  USVString biddingLogicURL;
@@ -34,6 +32,11 @@ dictionary AuctionAdInterestGroup {
34
32
  sequence<AuctionAd> adComponents;
35
33
  };
36
34
 
35
+ dictionary AuctionAdInterestGroup : GenerateBidInterestGroup {
36
+ double priority = 0.0;
37
+ record<DOMString, double> prioritySignalsOverrides;
38
+ };
39
+
37
40
  [SecureContext]
38
41
  partial interface Navigator {
39
42
  Promise<undefined> leaveAdInterestGroup(optional AuctionAdInterestGroupKey group = {});
@@ -54,16 +57,18 @@ dictionary AuctionAdConfig {
54
57
  required USVString decisionLogicURL;
55
58
  USVString trustedScoringSignalsURL;
56
59
  sequence<USVString> interestGroupBuyers;
57
- any auctionSignals;
60
+ Promise<any> auctionSignals;
58
61
  any sellerSignals;
59
62
  USVString directFromSellerSignals;
60
63
  unsigned long long sellerTimeout;
61
64
  unsigned short sellerExperimentGroupId;
62
- record<USVString, any> perBuyerSignals;
65
+ USVString sellerCurrency;
66
+ Promise<record<USVString, any>> perBuyerSignals;
63
67
  record<USVString, unsigned long long> perBuyerTimeouts;
64
68
  record<USVString, unsigned short> perBuyerGroupLimits;
65
69
  record<USVString, unsigned short> perBuyerExperimentGroupIds;
66
70
  record<USVString, record<USVString, double>> perBuyerPrioritySignals;
71
+ record<USVString, USVString> perBuyerCurrencies;
67
72
  sequence<AuctionAdConfig> componentAuctions = [];
68
73
  AbortSignal? signal;
69
74
  Promise<boolean> resolveToConfig;
@@ -84,6 +89,23 @@ interface InterestGroupBiddingScriptRunnerGlobalScope
84
89
  undefined setPrioritySignalsOverride(DOMString key, double priority);
85
90
  };
86
91
 
92
+ dictionary AdRender {
93
+ required DOMString url;
94
+ required DOMString width;
95
+ required DOMString height;
96
+ };
97
+
98
+ dictionary GenerateBidOutput {
99
+ required double bid;
100
+ DOMString bidCurrency;
101
+ required (DOMString or AdRender) render;
102
+ any ad;
103
+ sequence<(DOMString or AdRender)> adComponents;
104
+ double adCost;
105
+ double modelingSignals;
106
+ boolean allowComponentAuction = false;
107
+ };
108
+
87
109
  [Exposed=InterestGroupScoringScriptRunnerGlobalScope,
88
110
  Global=(InterestGroupScriptRunnerGlobalScope,
89
111
  InterestGroupScoringScriptRunnerGlobalScope)]
@@ -100,29 +122,43 @@ interface InterestGroupReportingScriptRunnerGlobalScope
100
122
  undefined registerAdBeacon(record<DOMString, USVString> map);
101
123
  };
102
124
 
103
- dictionary AdRender {
104
- required DOMString url;
105
- required DOMString width;
106
- required DOMString height;
125
+ [SecureContext]
126
+ partial interface Navigator {
127
+ undefined updateAdInterestGroups();
107
128
  };
108
129
 
109
- dictionary GenerateBidOutput {
110
- required double bid;
111
- required (DOMString or AdRender) adRender;
112
- any ad;
113
- sequence<(DOMString or AdRender)> adComponents;
114
- double adCost;
115
- double modelingSignals;
116
- boolean allowComponentAuction = false;
130
+ dictionary PreviousWin {
131
+ required long long timeDelta;
132
+ required DOMString adJSON;
117
133
  };
118
134
 
119
- [SecureContext]
120
- partial interface Navigator {
121
- undefined updateAdInterestGroups();
135
+ dictionary BiddingBrowserSignals {
136
+ required DOMString topWindowHostname;
137
+ required USVString seller;
138
+ required long joinCount;
139
+ required long bidCount;
140
+
141
+ USVString topLevelSeller;
142
+ sequence<PreviousWin> prevWinsMs;
143
+ object wasmHelper;
144
+ unsigned long dataVersion;
145
+ };
146
+
147
+ dictionary ScoringBrowserSignals {
148
+ required DOMString topWindowHostname;
149
+ required USVString interestGroupOwner;
150
+ required USVString renderURL;
151
+ required unsigned long biddingDurationMsec;
152
+ required DOMString bidCurrency;
153
+
154
+ unsigned long dataVersion;
155
+ sequence<USVString> adComponents;
122
156
  };
123
157
 
124
158
  dictionary ScoreAdOutput {
125
159
  required double desirability;
126
160
  double bid;
161
+ DOMString bidCurrency;
162
+ double incomingBidInSellerCurrency;
127
163
  boolean allowComponentAuction = false;
128
164
  };
package/webauthn.idl CHANGED
@@ -27,8 +27,19 @@ dictionary RegistrationResponseJSON {
27
27
 
28
28
  dictionary AuthenticatorAttestationResponseJSON {
29
29
  required Base64URLString clientDataJSON;
30
- required Base64URLString attestationObject;
30
+ required Base64URLString authenticatorData;
31
31
  required sequence<DOMString> transports;
32
+ // The publicKey field will be missing if pubKeyCredParams was used to
33
+ // negotiate a public-key algorithm that the user agent doesn’t
34
+ // understand. (See section “Easily accessing credential data” for a
35
+ // list of which algorithms user agents must support.) If using such an
36
+ // algorithm then the public key must be parsed directly from
37
+ // attestationObject or authenticatorData.
38
+ Base64URLString publicKey;
39
+ required long long publicKeyAlgorithm;
40
+ // This value contains copies of some of the fields above. See
41
+ // section “Easily accessing credential data”.
42
+ required Base64URLString attestationObject;
32
43
  };
33
44
 
34
45
  dictionary AuthenticationResponseJSON {
package/webcodecs.idl CHANGED
@@ -146,7 +146,7 @@ dictionary AudioDecoderConfig {
146
146
 
147
147
  dictionary VideoDecoderConfig {
148
148
  required DOMString codec;
149
- [AllowShared] BufferSource description;
149
+ AllowSharedBufferSource description;
150
150
  [EnforceRange] unsigned long codedWidth;
151
151
  [EnforceRange] unsigned long codedHeight;
152
152
  [EnforceRange] unsigned long displayAspectWidth;
@@ -221,7 +221,7 @@ interface EncodedAudioChunk {
221
221
  readonly attribute unsigned long long? duration; // microseconds
222
222
  readonly attribute unsigned long byteLength;
223
223
 
224
- undefined copyTo([AllowShared] BufferSource destination);
224
+ undefined copyTo(AllowSharedBufferSource destination);
225
225
  };
226
226
 
227
227
  dictionary EncodedAudioChunkInit {
@@ -244,14 +244,14 @@ interface EncodedVideoChunk {
244
244
  readonly attribute unsigned long long? duration; // microseconds
245
245
  readonly attribute unsigned long byteLength;
246
246
 
247
- undefined copyTo([AllowShared] BufferSource destination);
247
+ undefined copyTo(AllowSharedBufferSource destination);
248
248
  };
249
249
 
250
250
  dictionary EncodedVideoChunkInit {
251
251
  required EncodedVideoChunkType type;
252
252
  [EnforceRange] required long long timestamp; // microseconds
253
253
  [EnforceRange] unsigned long long duration; // microseconds
254
- required [AllowShared] BufferSource data;
254
+ required AllowSharedBufferSource data;
255
255
  };
256
256
 
257
257
  enum EncodedVideoChunkType {
@@ -271,7 +271,7 @@ interface AudioData {
271
271
  readonly attribute long long timestamp; // microseconds
272
272
 
273
273
  unsigned long allocationSize(AudioDataCopyToOptions options);
274
- undefined copyTo([AllowShared] BufferSource destination, AudioDataCopyToOptions options);
274
+ undefined copyTo(AllowSharedBufferSource destination, AudioDataCopyToOptions options);
275
275
  AudioData clone();
276
276
  undefined close();
277
277
  };
@@ -306,7 +306,7 @@ enum AudioSampleFormat {
306
306
  [Exposed=(Window,DedicatedWorker), Serializable, Transferable]
307
307
  interface VideoFrame {
308
308
  constructor(CanvasImageSource image, optional VideoFrameInit init = {});
309
- constructor([AllowShared] BufferSource data, VideoFrameBufferInit init);
309
+ constructor(AllowSharedBufferSource data, VideoFrameBufferInit init);
310
310
 
311
311
  readonly attribute VideoPixelFormat? format;
312
312
  readonly attribute unsigned long codedWidth;
@@ -324,7 +324,7 @@ interface VideoFrame {
324
324
  unsigned long allocationSize(
325
325
  optional VideoFrameCopyToOptions options = {});
326
326
  Promise<sequence<PlaneLayout>> copyTo(
327
- [AllowShared] BufferSource destination,
327
+ AllowSharedBufferSource destination,
328
328
  optional VideoFrameCopyToOptions options = {});
329
329
  VideoFrame clone();
330
330
  undefined close();
package/webgl1.idl CHANGED
@@ -685,8 +685,8 @@ interface mixin WebGLRenderingContextBase
685
685
  interface mixin WebGLRenderingContextOverloads
686
686
  {
687
687
  undefined bufferData(GLenum target, GLsizeiptr size, GLenum usage);
688
- undefined bufferData(GLenum target, [AllowShared] BufferSource? data, GLenum usage);
689
- undefined bufferSubData(GLenum target, GLintptr offset, [AllowShared] BufferSource data);
688
+ undefined bufferData(GLenum target, AllowSharedBufferSource? data, GLenum usage);
689
+ undefined bufferSubData(GLenum target, GLintptr offset, AllowSharedBufferSource data);
690
690
 
691
691
  undefined compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
692
692
  GLsizei width, GLsizei height, GLint border,
package/webgl2.idl CHANGED
@@ -483,8 +483,8 @@ interface mixin WebGL2RenderingContextOverloads
483
483
  {
484
484
  // WebGL1:
485
485
  undefined bufferData(GLenum target, GLsizeiptr size, GLenum usage);
486
- undefined bufferData(GLenum target, [AllowShared] BufferSource? srcData, GLenum usage);
487
- undefined bufferSubData(GLenum target, GLintptr dstByteOffset, [AllowShared] BufferSource srcData);
486
+ undefined bufferData(GLenum target, AllowSharedBufferSource? srcData, GLenum usage);
487
+ undefined bufferSubData(GLenum target, GLintptr dstByteOffset, AllowSharedBufferSource srcData);
488
488
  // WebGL2:
489
489
  undefined bufferData(GLenum target, [AllowShared] ArrayBufferView srcData, GLenum usage, GLuint srcOffset,
490
490
  optional GLuint length = 0);
package/webgpu.idl CHANGED
@@ -1125,13 +1125,13 @@ interface GPUQueue {
1125
1125
  undefined writeBuffer(
1126
1126
  GPUBuffer buffer,
1127
1127
  GPUSize64 bufferOffset,
1128
- [AllowShared] BufferSource data,
1128
+ AllowSharedBufferSource data,
1129
1129
  optional GPUSize64 dataOffset = 0,
1130
1130
  optional GPUSize64 size);
1131
1131
 
1132
1132
  undefined writeTexture(
1133
1133
  GPUImageCopyTexture destination,
1134
- [AllowShared] BufferSource data,
1134
+ AllowSharedBufferSource data,
1135
1135
  GPUImageDataLayout dataLayout,
1136
1136
  GPUExtent3D size);
1137
1137
 
package/webusb.idl CHANGED
@@ -14,6 +14,7 @@ dictionary USBDeviceFilter {
14
14
 
15
15
  dictionary USBDeviceRequestOptions {
16
16
  required sequence<USBDeviceFilter> filters;
17
+ sequence<USBDeviceFilter> exclusionFilters = [];
17
18
  };
18
19
 
19
20
  [Exposed=(Worker,Window), SecureContext]
@@ -231,6 +232,7 @@ interface USBEndpoint {
231
232
 
232
233
  dictionary USBPermissionDescriptor : PermissionDescriptor {
233
234
  sequence<USBDeviceFilter> filters;
235
+ sequence<USBDeviceFilter> exclusionFilters;
234
236
  };
235
237
 
236
238
  dictionary AllowedUSBDevice {