@webref/idl 3.35.1 → 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
@@ -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.1",
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
  };
package/turtledove.idl CHANGED
@@ -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
  };
@@ -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,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]