@webref/idl 3.35.1 → 3.36.0

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.
@@ -0,0 +1,14 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: CSS Anchor Positioning (https://drafts.csswg.org/css-anchor-position-1/)
5
+
6
+ [Exposed=Window]
7
+ interface CSSPositionFallbackRule : CSSGroupingRule {
8
+ readonly attribute CSSOMString name;
9
+ };
10
+
11
+ [Exposed=Window]
12
+ interface CSSTryRule : CSSRule {
13
+ [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
14
+ };
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
@@ -1594,6 +1594,7 @@ OffscreenCanvasRenderingContext2D includes CanvasPath;
1594
1594
  interface CustomElementRegistry {
1595
1595
  [CEReactions] undefined define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});
1596
1596
  (CustomElementConstructor or undefined) get(DOMString name);
1597
+ DOMString? getName(CustomElementConstructor constructor);
1597
1598
  Promise<CustomElementConstructor> whenDefined(DOMString name);
1598
1599
  [CEReactions] undefined upgrade(Node root);
1599
1600
  };
@@ -1751,6 +1752,7 @@ interface Window : EventTarget {
1751
1752
  attribute DOMString name;
1752
1753
  [PutForwards=href, LegacyUnforgeable] readonly attribute Location location;
1753
1754
  readonly attribute History history;
1755
+ readonly attribute Navigation navigation;
1754
1756
  readonly attribute CustomElementRegistry customElements;
1755
1757
  [Replaceable] readonly attribute BarProp locationbar;
1756
1758
  [Replaceable] readonly attribute BarProp menubar;
@@ -1841,6 +1843,156 @@ interface History {
1841
1843
  undefined replaceState(any data, DOMString unused, optional USVString? url = null);
1842
1844
  };
1843
1845
 
1846
+ [Exposed=Window]
1847
+ interface Navigation : EventTarget {
1848
+ sequence<NavigationHistoryEntry> entries();
1849
+ readonly attribute NavigationHistoryEntry? currentEntry;
1850
+ undefined updateCurrentEntry(NavigationUpdateCurrentEntryOptions options);
1851
+ readonly attribute NavigationTransition? transition;
1852
+
1853
+ readonly attribute boolean canGoBack;
1854
+ readonly attribute boolean canGoForward;
1855
+
1856
+ NavigationResult navigate(USVString url, optional NavigationNavigateOptions options = {});
1857
+ NavigationResult reload(optional NavigationReloadOptions options = {});
1858
+
1859
+ NavigationResult traverseTo(DOMString key, optional NavigationOptions options = {});
1860
+ NavigationResult back(optional NavigationOptions options = {});
1861
+ NavigationResult forward(optional NavigationOptions options = {});
1862
+
1863
+ attribute EventHandler onnavigate;
1864
+ attribute EventHandler onnavigatesuccess;
1865
+ attribute EventHandler onnavigateerror;
1866
+ attribute EventHandler oncurrententrychange;
1867
+ };
1868
+
1869
+ dictionary NavigationUpdateCurrentEntryOptions {
1870
+ required any state;
1871
+ };
1872
+
1873
+ dictionary NavigationOptions {
1874
+ any info;
1875
+ };
1876
+
1877
+ dictionary NavigationNavigateOptions : NavigationOptions {
1878
+ any state;
1879
+ NavigationHistoryBehavior history = "auto";
1880
+ };
1881
+
1882
+ dictionary NavigationReloadOptions : NavigationOptions {
1883
+ any state;
1884
+ };
1885
+
1886
+ dictionary NavigationResult {
1887
+ Promise<NavigationHistoryEntry> committed;
1888
+ Promise<NavigationHistoryEntry> finished;
1889
+ };
1890
+
1891
+ enum NavigationHistoryBehavior {
1892
+ "auto",
1893
+ "push",
1894
+ "replace"
1895
+ };
1896
+
1897
+ enum NavigationType {
1898
+ "push",
1899
+ "replace",
1900
+ "reload",
1901
+ "traverse"
1902
+ };
1903
+
1904
+ [Exposed=Window]
1905
+ interface NavigationHistoryEntry : EventTarget {
1906
+ readonly attribute USVString? url;
1907
+ readonly attribute DOMString key;
1908
+ readonly attribute DOMString id;
1909
+ readonly attribute long long index;
1910
+ readonly attribute boolean sameDocument;
1911
+
1912
+ any getState();
1913
+
1914
+ attribute EventHandler ondispose;
1915
+ };
1916
+
1917
+ [Exposed=Window]
1918
+ interface NavigationTransition {
1919
+ readonly attribute NavigationType navigationType;
1920
+ readonly attribute NavigationHistoryEntry from;
1921
+ readonly attribute Promise<undefined> finished;
1922
+ };
1923
+
1924
+ [Exposed=Window]
1925
+ interface NavigateEvent : Event {
1926
+ constructor(DOMString type, NavigateEventInit eventInitDict);
1927
+
1928
+ readonly attribute NavigationType navigationType;
1929
+ readonly attribute NavigationDestination destination;
1930
+ readonly attribute boolean canIntercept;
1931
+ readonly attribute boolean userInitiated;
1932
+ readonly attribute boolean hashChange;
1933
+ readonly attribute AbortSignal signal;
1934
+ readonly attribute FormData? formData;
1935
+ readonly attribute DOMString? downloadRequest;
1936
+ readonly attribute any info;
1937
+
1938
+ undefined intercept(optional NavigationInterceptOptions options = {});
1939
+ undefined scroll();
1940
+ };
1941
+
1942
+ dictionary NavigateEventInit : EventInit {
1943
+ NavigationType navigationType = "push";
1944
+ required NavigationDestination destination;
1945
+ boolean canIntercept = false;
1946
+ boolean userInitiated = false;
1947
+ boolean hashChange = false;
1948
+ required AbortSignal signal;
1949
+ FormData? formData = null;
1950
+ DOMString? downloadRequest = null;
1951
+ any info;
1952
+ };
1953
+
1954
+ dictionary NavigationInterceptOptions {
1955
+ NavigationInterceptHandler handler;
1956
+ NavigationFocusReset focusReset;
1957
+ NavigationScrollBehavior scroll;
1958
+ };
1959
+
1960
+ enum NavigationFocusReset {
1961
+ "after-transition",
1962
+ "manual"
1963
+ };
1964
+
1965
+ enum NavigationScrollBehavior {
1966
+ "after-transition",
1967
+ "manual"
1968
+ };
1969
+
1970
+ callback NavigationInterceptHandler = Promise<undefined> ();
1971
+
1972
+ [Exposed=Window]
1973
+ interface NavigationDestination {
1974
+ readonly attribute USVString url;
1975
+ readonly attribute DOMString key;
1976
+ readonly attribute DOMString id;
1977
+ readonly attribute long long index;
1978
+ readonly attribute boolean sameDocument;
1979
+
1980
+ any getState();
1981
+ };
1982
+
1983
+ [Exposed=Window]
1984
+ interface NavigationCurrentEntryChangeEvent : Event {
1985
+ constructor(DOMString type, NavigationCurrentEntryChangeEventInit eventInitDict);
1986
+
1987
+ readonly attribute NavigationType? navigationType;
1988
+ readonly attribute NavigationHistoryEntry from;
1989
+ };
1990
+
1991
+ dictionary NavigationCurrentEntryChangeEventInit : EventInit {
1992
+ NavigationType? navigationType = null;
1993
+ required NavigationHistoryEntry from;
1994
+ };
1995
+
1844
1996
  [Exposed=Window]
1845
1997
  interface PopStateEvent : Event {
1846
1998
  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.1",
4
+ "version": "3.36.0",
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
  };
package/turtledove.idl CHANGED
@@ -58,17 +58,17 @@ dictionary AuctionAdConfig {
58
58
  USVString trustedScoringSignalsURL;
59
59
  sequence<USVString> interestGroupBuyers;
60
60
  Promise<any> auctionSignals;
61
- any sellerSignals;
62
- USVString directFromSellerSignals;
61
+ Promise<any> sellerSignals;
62
+ Promise<USVString> directFromSellerSignals;
63
63
  unsigned long long sellerTimeout;
64
64
  unsigned short sellerExperimentGroupId;
65
65
  USVString sellerCurrency;
66
66
  Promise<record<USVString, any>> perBuyerSignals;
67
- record<USVString, unsigned long long> perBuyerTimeouts;
67
+ Promise<record<USVString, unsigned long long>> perBuyerTimeouts;
68
68
  record<USVString, unsigned short> perBuyerGroupLimits;
69
69
  record<USVString, unsigned short> perBuyerExperimentGroupIds;
70
70
  record<USVString, record<USVString, double>> perBuyerPrioritySignals;
71
- record<USVString, USVString> perBuyerCurrencies;
71
+ Promise<record<USVString, USVString>> perBuyerCurrencies;
72
72
  sequence<AuctionAdConfig> componentAuctions = [];
73
73
  AbortSignal? signal;
74
74
  Promise<boolean> resolveToConfig;
@@ -98,7 +98,7 @@ dictionary AdRender {
98
98
  dictionary GenerateBidOutput {
99
99
  required double bid;
100
100
  DOMString bidCurrency;
101
- required (DOMString or AdRender) adRender;
101
+ required (DOMString or AdRender) render;
102
102
  any ad;
103
103
  sequence<(DOMString or AdRender)> adComponents;
104
104
  double adCost;
@@ -122,12 +122,6 @@ interface InterestGroupReportingScriptRunnerGlobalScope
122
122
  undefined registerAdBeacon(record<DOMString, USVString> map);
123
123
  };
124
124
 
125
- dictionary ReportResultOutput {
126
- DOMString signalsForWinner;
127
- USVString reportUrl;
128
- any reportingBeaconMap;
129
- };
130
-
131
125
  [SecureContext]
132
126
  partial interface Navigator {
133
127
  undefined updateAdInterestGroups();
@@ -150,6 +144,17 @@ dictionary BiddingBrowserSignals {
150
144
  unsigned long dataVersion;
151
145
  };
152
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;
156
+ };
157
+
153
158
  dictionary ScoreAdOutput {
154
159
  required double desirability;
155
160
  double bid;
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
  };
@@ -283,6 +283,7 @@ dictionary AudioDataInit {
283
283
  [EnforceRange] required unsigned long numberOfChannels;
284
284
  [EnforceRange] required long long timestamp; // microseconds
285
285
  required BufferSource data;
286
+ sequence<ArrayBuffer> transfer = [];
286
287
  };
287
288
 
288
289
  dictionary AudioDataCopyToOptions {
@@ -306,7 +307,7 @@ enum AudioSampleFormat {
306
307
  [Exposed=(Window,DedicatedWorker), Serializable, Transferable]
307
308
  interface VideoFrame {
308
309
  constructor(CanvasImageSource image, optional VideoFrameInit init = {});
309
- constructor([AllowShared] BufferSource data, VideoFrameBufferInit init);
310
+ constructor(AllowSharedBufferSource data, VideoFrameBufferInit init);
310
311
 
311
312
  readonly attribute VideoPixelFormat? format;
312
313
  readonly attribute unsigned long codedWidth;
@@ -324,7 +325,7 @@ interface VideoFrame {
324
325
  unsigned long allocationSize(
325
326
  optional VideoFrameCopyToOptions options = {});
326
327
  Promise<sequence<PlaneLayout>> copyTo(
327
- [AllowShared] BufferSource destination,
328
+ AllowSharedBufferSource destination,
328
329
  optional VideoFrameCopyToOptions options = {});
329
330
  VideoFrame clone();
330
331
  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,7 +14,7 @@ dictionary USBDeviceFilter {
14
14
 
15
15
  dictionary USBDeviceRequestOptions {
16
16
  required sequence<USBDeviceFilter> filters;
17
- sequence<USBDeviceFilter> exclusionFilters;
17
+ sequence<USBDeviceFilter> exclusionFilters = [];
18
18
  };
19
19
 
20
20
  [Exposed=(Worker,Window), SecureContext]