@webref/idl 3.45.2 → 3.46.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.
@@ -33,5 +33,5 @@ interface PressureRecord {
33
33
  };
34
34
 
35
35
  dictionary PressureObserverOptions {
36
- double sampleRate = 1.0;
36
+ [EnforceRange] unsigned long sampleInterval = 0;
37
37
  };
@@ -24,7 +24,7 @@ partial interface CSSRule {
24
24
  [Exposed=Window]
25
25
  interface CSSKeyframeRule : CSSRule {
26
26
  attribute CSSOMString keyText;
27
- [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
27
+ [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
28
28
  };
29
29
 
30
30
  [Exposed=Window]
package/css-fonts.idl CHANGED
@@ -3,9 +3,42 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSS Fonts Module Level 4 (https://drafts.csswg.org/css-fonts-4/)
5
5
 
6
+ [Exposed=Window]
7
+ interface CSSFontFaceDescriptors : CSSStyleDeclaration {
8
+ attribute [LegacyNullToEmptyString] CSSOMString src;
9
+ attribute [LegacyNullToEmptyString] CSSOMString fontFamily;
10
+ attribute [LegacyNullToEmptyString] CSSOMString font-family;
11
+ attribute [LegacyNullToEmptyString] CSSOMString fontStyle;
12
+ attribute [LegacyNullToEmptyString] CSSOMString font-style;
13
+ attribute [LegacyNullToEmptyString] CSSOMString fontWeight;
14
+ attribute [LegacyNullToEmptyString] CSSOMString font-weight;
15
+ attribute [LegacyNullToEmptyString] CSSOMString fontStretch;
16
+ attribute [LegacyNullToEmptyString] CSSOMString font-stretch;
17
+ attribute [LegacyNullToEmptyString] CSSOMString fontWidth;
18
+ attribute [LegacyNullToEmptyString] CSSOMString font-width;
19
+ attribute [LegacyNullToEmptyString] CSSOMString unicodeRange;
20
+ attribute [LegacyNullToEmptyString] CSSOMString unicode-range;
21
+ attribute [LegacyNullToEmptyString] CSSOMString fontFeatureSettings;
22
+ attribute [LegacyNullToEmptyString] CSSOMString font-feature-settings;
23
+ attribute [LegacyNullToEmptyString] CSSOMString fontVariationSettings;
24
+ attribute [LegacyNullToEmptyString] CSSOMString font-variation-settings;
25
+ attribute [LegacyNullToEmptyString] CSSOMString fontNamedInstance;
26
+ attribute [LegacyNullToEmptyString] CSSOMString font-named-instance;
27
+ attribute [LegacyNullToEmptyString] CSSOMString fontDisplay;
28
+ attribute [LegacyNullToEmptyString] CSSOMString font-display;
29
+ attribute [LegacyNullToEmptyString] CSSOMString fontLanguageOverride;
30
+ attribute [LegacyNullToEmptyString] CSSOMString font-language-override;
31
+ attribute [LegacyNullToEmptyString] CSSOMString ascentOverride;
32
+ attribute [LegacyNullToEmptyString] CSSOMString ascent-override;
33
+ attribute [LegacyNullToEmptyString] CSSOMString descentOverride;
34
+ attribute [LegacyNullToEmptyString] CSSOMString descent-override;
35
+ attribute [LegacyNullToEmptyString] CSSOMString lineGapOverride;
36
+ attribute [LegacyNullToEmptyString] CSSOMString line-gap-override;
37
+ };
38
+
6
39
  [Exposed=Window]
7
40
  interface CSSFontFaceRule : CSSRule {
8
- readonly attribute CSSStyleDeclaration style;
41
+ readonly attribute CSSFontFaceDescriptors style;
9
42
  };
10
43
 
11
44
  partial interface CSSRule { const unsigned short FONT_FEATURE_VALUES_RULE = 14;
@@ -3,31 +3,14 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSS Scroll Snap Module Level 2 (https://drafts.csswg.org/css-scroll-snap-2/)
5
5
 
6
- [Exposed=Window]
7
- interface SnapEvent : Event {
8
- constructor(DOMString type, optional SnapEventInit eventInitDict = {});
9
- readonly attribute EventTarget? target;
10
- readonly attribute SnapTargetList snappedTargets;
11
- readonly attribute SnapTargetList snapTargets;
12
- readonly attribute boolean invokedProgrammatically;
13
- readonly attribute boolean smoothlyScrolled;
14
- };
15
-
16
- [Exposed=Window]
17
- interface SnapTargetList {
18
- readonly attribute SnapTargetArray x;
19
- readonly attribute SnapTargetArray y;
6
+ dictionary SnapEventInit : EventInit {
7
+ Node? snapTargetBlock;
8
+ Node? snapTargetInline;
20
9
  };
21
10
 
22
11
  [Exposed=Window]
23
- interface SnapTargetArray {
24
- readonly attribute unsigned long length;
25
- getter EventTarget? item (unsigned long index);
26
- };
27
-
28
- dictionary SnapEventInit : EventModifierInit {
29
- sequence<EventTarget> snappedTargetsX = [];
30
- sequence<EventTarget> snappedTargetsY = [];
31
- sequence<EventTarget> snapTargetsListX = [];
32
- sequence<EventTarget> snapTargetsListY = [];
12
+ interface SnapEvent : Event {
13
+ constructor(DOMString type, optional SnapEventInit eventInitDict = {});
14
+ readonly attribute Node? snapTargetBlock;
15
+ readonly attribute Node? snapTargetInline;
33
16
  };
@@ -3,27 +3,34 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: CSS View Transitions Module Level 2 (https://drafts.csswg.org/css-view-transitions-2/)
5
5
 
6
- dictionary StartViewTransitionOptions {
7
- UpdateCallback? update = null;
8
- sequence<DOMString>? type = null;
9
- };
10
-
11
- partial interface Document {
12
-
13
- ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {});
14
- };
15
-
16
6
  partial interface CSSRule {
17
7
  const unsigned short VIEW_TRANSITION_RULE = 15;
18
8
  };
19
9
 
20
10
  enum ViewTransitionNavigation { "auto", "none" };
11
+
21
12
  [Exposed=Window]
22
13
  interface CSSViewTransitionRule : CSSRule {
23
- attribute ViewTransitionNavigation navigation;
24
- attribute DOMTokenList typeList;
14
+ readonly attribute ViewTransitionNavigation navigation;
15
+ readonly attribute FrozenArray<CSSOMString> types;
25
16
  };
26
17
 
18
+ [Exposed=Window]
19
+ interface ViewTransitionTypeSet {
20
+ setlike<DOMString>;
21
+ };
22
+
23
+ [Exposed=Window]
27
24
  partial interface ViewTransition {
28
- readonly attribute DOMTokenList typeList;
25
+ attribute ViewTransitionTypeSet types;
26
+ };
27
+
28
+ dictionary StartViewTransitionOptions {
29
+ UpdateCallback? update = null;
30
+ sequence<DOMString>? types = null;
31
+ };
32
+
33
+ partial interface Document {
34
+
35
+ ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {});
29
36
  };
package/cssom-view.idl CHANGED
@@ -130,6 +130,7 @@ partial interface Element {
130
130
  readonly attribute long clientLeft;
131
131
  readonly attribute long clientWidth;
132
132
  readonly attribute long clientHeight;
133
+ readonly attribute double currentCSSZoom;
133
134
  };
134
135
 
135
136
  partial interface HTMLElement {
package/cssom.idl CHANGED
@@ -91,7 +91,7 @@ interface CSSRule {
91
91
  [Exposed=Window]
92
92
  interface CSSStyleRule : CSSGroupingRule {
93
93
  attribute CSSOMString selectorText;
94
- [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
94
+ [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
95
95
  };
96
96
 
97
97
  [Exposed=Window]
@@ -110,10 +110,26 @@ interface CSSGroupingRule : CSSRule {
110
110
  undefined deleteRule(unsigned long index);
111
111
  };
112
112
 
113
+ [Exposed=Window]
114
+ interface CSSPageDescriptors : CSSStyleDeclaration {
115
+ attribute [LegacyNullToEmptyString] CSSOMString margin;
116
+ attribute [LegacyNullToEmptyString] CSSOMString marginTop;
117
+ attribute [LegacyNullToEmptyString] CSSOMString marginRight;
118
+ attribute [LegacyNullToEmptyString] CSSOMString marginBottom;
119
+ attribute [LegacyNullToEmptyString] CSSOMString marginLeft;
120
+ attribute [LegacyNullToEmptyString] CSSOMString margin-top;
121
+ attribute [LegacyNullToEmptyString] CSSOMString margin-right;
122
+ attribute [LegacyNullToEmptyString] CSSOMString margin-bottom;
123
+ attribute [LegacyNullToEmptyString] CSSOMString margin-left;
124
+ attribute [LegacyNullToEmptyString] CSSOMString size;
125
+ attribute [LegacyNullToEmptyString] CSSOMString marks;
126
+ attribute [LegacyNullToEmptyString] CSSOMString bleed;
127
+ };
128
+
113
129
  [Exposed=Window]
114
130
  interface CSSPageRule : CSSGroupingRule {
115
131
  attribute CSSOMString selectorText;
116
- [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
132
+ [SameObject, PutForwards=cssText] readonly attribute CSSPageDescriptors style;
117
133
  };
118
134
 
119
135
  [Exposed=Window]
@@ -138,6 +154,10 @@ interface CSSStyleDeclaration {
138
154
  [CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
139
155
  [CEReactions] CSSOMString removeProperty(CSSOMString property);
140
156
  readonly attribute CSSRule? parentRule;
157
+ };
158
+
159
+ [Exposed=Window]
160
+ interface CSSStyleProperties : CSSStyleDeclaration {
141
161
  [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
142
162
  };
143
163
 
@@ -0,0 +1,13 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Device Attributes API (https://wicg.github.io/WebApiDevice/device_attributes/)
5
+
6
+ partial interface NavigatorManagedData {
7
+ // Device Attributes API.
8
+ Promise<DOMString> getAnnotatedAssetId();
9
+ Promise<DOMString> getAnnotatedLocation();
10
+ Promise<DOMString> getDirectoryId();
11
+ Promise<DOMString> getHostname();
12
+ Promise<DOMString> getSerialNumber();
13
+ };
package/gamepad.idl CHANGED
@@ -44,7 +44,8 @@ enum GamepadHapticsResult {
44
44
  };
45
45
 
46
46
  enum GamepadHapticEffectType {
47
- "dual-rumble"
47
+ "dual-rumble",
48
+ "trigger-rumble"
48
49
  };
49
50
 
50
51
  dictionary GamepadEffectParameters {
@@ -52,6 +53,8 @@ dictionary GamepadEffectParameters {
52
53
  unsigned long long startDelay = 0;
53
54
  double strongMagnitude = 0.0;
54
55
  double weakMagnitude = 0.0;
56
+ double leftTrigger = 0.0;
57
+ double rightTrigger = 0.0;
55
58
  };
56
59
 
57
60
  [Exposed=Window]
package/html.idl CHANGED
@@ -48,7 +48,7 @@ typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement;
48
48
 
49
49
  [LegacyOverrideBuiltIns]
50
50
  partial interface Document {
51
- static Document parseHTMLUnsafe(DOMString html);
51
+ static Document parseHTMLUnsafe(HTMLString html);
52
52
 
53
53
  // resource metadata management
54
54
  [PutForwards=href, LegacyUnforgeable] readonly attribute Location? location;
@@ -77,8 +77,8 @@ partial interface Document {
77
77
  [CEReactions] Document open(optional DOMString unused1, optional DOMString unused2); // both arguments are ignored
78
78
  WindowProxy? open(USVString url, DOMString name, DOMString features);
79
79
  [CEReactions] undefined close();
80
- [CEReactions] undefined write(DOMString... text);
81
- [CEReactions] undefined writeln(DOMString... text);
80
+ [CEReactions] undefined write(HTMLString... text);
81
+ [CEReactions] undefined writeln(HTMLString... text);
82
82
 
83
83
  // user interaction
84
84
  readonly attribute WindowProxy? defaultView;
@@ -452,7 +452,7 @@ interface HTMLIFrameElement : HTMLElement {
452
452
  [HTMLConstructor] constructor();
453
453
 
454
454
  [CEReactions] attribute USVString src;
455
- [CEReactions] attribute DOMString srcdoc;
455
+ [CEReactions] attribute HTMLString srcdoc;
456
456
  [CEReactions] attribute DOMString name;
457
457
  [SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
458
458
  [CEReactions] attribute DOMString allow;
@@ -2296,7 +2296,7 @@ WorkerGlobalScope includes WindowOrWorkerGlobalScope;
2296
2296
  interface DOMParser {
2297
2297
  constructor();
2298
2298
 
2299
- [NewObject] Document parseFromString(DOMString string, DOMParserSupportedType type);
2299
+ [NewObject] Document parseFromString(HTMLString string, DOMParserSupportedType type);
2300
2300
  };
2301
2301
 
2302
2302
  enum DOMParserSupportedType {
@@ -2308,11 +2308,11 @@ enum DOMParserSupportedType {
2308
2308
  };
2309
2309
 
2310
2310
  partial interface Element {
2311
- [CEReactions] undefined setHTMLUnsafe(DOMString html);
2311
+ [CEReactions] undefined setHTMLUnsafe(HTMLString html);
2312
2312
  };
2313
2313
 
2314
2314
  partial interface ShadowRoot {
2315
- [CEReactions] undefined setHTMLUnsafe(DOMString html);
2315
+ [CEReactions] undefined setHTMLUnsafe(HTMLString html);
2316
2316
  };
2317
2317
 
2318
2318
  [Exposed=Window]
@@ -2527,7 +2527,7 @@ interface WorkerGlobalScope : EventTarget {
2527
2527
  readonly attribute WorkerGlobalScope self;
2528
2528
  readonly attribute WorkerLocation location;
2529
2529
  readonly attribute WorkerNavigator navigator;
2530
- undefined importScripts(USVString... urls);
2530
+ undefined importScripts(ScriptURLString... urls);
2531
2531
 
2532
2532
  attribute OnErrorEventHandler onerror;
2533
2533
  attribute EventHandler onlanguagechange;
@@ -2565,7 +2565,7 @@ interface mixin AbstractWorker {
2565
2565
 
2566
2566
  [Exposed=(Window,DedicatedWorker,SharedWorker)]
2567
2567
  interface Worker : EventTarget {
2568
- constructor(USVString scriptURL, optional WorkerOptions options = {});
2568
+ constructor(ScriptURLString scriptURL, optional WorkerOptions options = {});
2569
2569
 
2570
2570
  undefined terminate();
2571
2571
 
@@ -2587,7 +2587,7 @@ Worker includes AbstractWorker;
2587
2587
 
2588
2588
  [Exposed=Window]
2589
2589
  interface SharedWorker : EventTarget {
2590
- constructor(USVString scriptURL, optional (DOMString or WorkerOptions) options = {});
2590
+ constructor(ScriptURLString scriptURL, optional (DOMString or WorkerOptions) options = {});
2591
2591
 
2592
2592
  readonly attribute MessagePort port;
2593
2593
  };
package/media-source.idl CHANGED
@@ -18,23 +18,25 @@ enum EndOfStreamError {
18
18
  interface MediaSource : EventTarget {
19
19
  constructor();
20
20
 
21
- [ SameObject, Exposed=DedicatedWorker ]
22
- readonly attribute MediaSourceHandle handle;
23
-
24
- readonly attribute SourceBufferList sourceBuffers;
25
- readonly attribute SourceBufferList activeSourceBuffers;
26
- readonly attribute ReadyState readyState;
27
- attribute unrestricted double duration;
28
- attribute EventHandler onsourceopen;
29
- attribute EventHandler onsourceended;
30
- attribute EventHandler onsourceclose;
31
- static readonly attribute boolean canConstructInDedicatedWorker;
32
- SourceBuffer addSourceBuffer (DOMString type);
33
- undefined removeSourceBuffer (SourceBuffer sourceBuffer);
34
- undefined endOfStream (optional EndOfStreamError error);
35
- undefined setLiveSeekableRange (double start, double end);
36
- undefined clearLiveSeekableRange ();
37
- static boolean isTypeSupported (DOMString type);
21
+ [SameObject, Exposed=DedicatedWorker]
22
+ readonly attribute MediaSourceHandle handle;
23
+ readonly attribute SourceBufferList sourceBuffers;
24
+ readonly attribute SourceBufferList activeSourceBuffers;
25
+ readonly attribute ReadyState readyState;
26
+
27
+ attribute unrestricted double duration;
28
+ attribute EventHandler onsourceopen;
29
+ attribute EventHandler onsourceended;
30
+ attribute EventHandler onsourceclose;
31
+
32
+ static readonly attribute boolean canConstructInDedicatedWorker;
33
+
34
+ SourceBuffer addSourceBuffer(DOMString type);
35
+ undefined removeSourceBuffer(SourceBuffer sourceBuffer);
36
+ undefined endOfStream(optional EndOfStreamError error);
37
+ undefined setLiveSeekableRange(double start, double end);
38
+ undefined clearLiveSeekableRange();
39
+ static boolean isTypeSupported(DOMString type);
38
40
  };
39
41
 
40
42
  [Transferable, Exposed=(Window,DedicatedWorker)]
@@ -47,32 +49,36 @@ enum AppendMode {
47
49
 
48
50
  [Exposed=(Window,DedicatedWorker)]
49
51
  interface SourceBuffer : EventTarget {
50
- attribute AppendMode mode;
51
- readonly attribute boolean updating;
52
- readonly attribute TimeRanges buffered;
53
- attribute double timestampOffset;
54
- readonly attribute AudioTrackList audioTracks;
55
- readonly attribute VideoTrackList videoTracks;
56
- readonly attribute TextTrackList textTracks;
57
- attribute double appendWindowStart;
58
- attribute unrestricted double appendWindowEnd;
59
- attribute EventHandler onupdatestart;
60
- attribute EventHandler onupdate;
61
- attribute EventHandler onupdateend;
62
- attribute EventHandler onerror;
63
- attribute EventHandler onabort;
64
- undefined appendBuffer (BufferSource data);
65
- undefined abort ();
66
- undefined changeType (DOMString type);
67
- undefined remove (double start, unrestricted double end);
52
+ attribute AppendMode mode;
53
+ readonly attribute boolean updating;
54
+ readonly attribute TimeRanges buffered;
55
+ attribute double timestampOffset;
56
+ readonly attribute AudioTrackList audioTracks;
57
+ readonly attribute VideoTrackList videoTracks;
58
+ readonly attribute TextTrackList textTracks;
59
+ attribute double appendWindowStart;
60
+ attribute unrestricted double appendWindowEnd;
61
+
62
+ attribute EventHandler onupdatestart;
63
+ attribute EventHandler onupdate;
64
+ attribute EventHandler onupdateend;
65
+ attribute EventHandler onerror;
66
+ attribute EventHandler onabort;
67
+
68
+ undefined appendBuffer(BufferSource data);
69
+ undefined abort();
70
+ undefined changeType(DOMString type);
71
+ undefined remove(double start, unrestricted double end);
68
72
  };
69
73
 
70
74
  [Exposed=(Window,DedicatedWorker)]
71
75
  interface SourceBufferList : EventTarget {
72
- readonly attribute unsigned long length;
73
- attribute EventHandler onaddsourcebuffer;
74
- attribute EventHandler onremovesourcebuffer;
75
- getter SourceBuffer (unsigned long index);
76
+ readonly attribute unsigned long length;
77
+
78
+ attribute EventHandler onaddsourcebuffer;
79
+ attribute EventHandler onremovesourcebuffer;
80
+
81
+ getter SourceBuffer (unsigned long index);
76
82
  };
77
83
 
78
84
  [Exposed=(Window,DedicatedWorker)]
@@ -103,15 +109,15 @@ interface ManagedSourceBuffer : SourceBuffer {
103
109
 
104
110
  [Exposed=(Window,DedicatedWorker)]
105
111
  partial interface AudioTrack {
106
- readonly attribute SourceBuffer? sourceBuffer;
112
+ readonly attribute SourceBuffer? sourceBuffer;
107
113
  };
108
114
 
109
115
  [Exposed=(Window,DedicatedWorker)]
110
116
  partial interface VideoTrack {
111
- readonly attribute SourceBuffer? sourceBuffer;
117
+ readonly attribute SourceBuffer? sourceBuffer;
112
118
  };
113
119
 
114
120
  [Exposed=(Window,DedicatedWorker)]
115
121
  partial interface TextTrack {
116
- readonly attribute SourceBuffer? sourceBuffer;
122
+ readonly attribute SourceBuffer? sourceBuffer;
117
123
  };
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.45.2",
4
+ "version": "3.46.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/sanitizer-api.idl CHANGED
@@ -3,36 +3,49 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: HTML Sanitizer API (https://wicg.github.io/sanitizer-api/)
5
5
 
6
- [
7
- Exposed=(Window),
8
- SecureContext
9
- ] interface Sanitizer {
10
- constructor(optional SanitizerConfig config = {});
6
+ partial interface Element {
7
+ [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
8
+ [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
9
+ };
11
10
 
12
- DocumentFragment sanitize((Document or DocumentFragment) input);
13
- Element? sanitizeFor(DOMString element, DOMString input);
11
+ partial interface ShadowRoot {
12
+ [CEReactions] undefined setHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
13
+ [CEReactions] undefined setHTML(DOMString html, optional SanitizerConfig config = {});
14
+ };
14
15
 
15
- SanitizerConfig getConfiguration();
16
- static SanitizerConfig getDefaultConfiguration();
16
+ partial interface Document {
17
+ static Document parseHTMLUnsafe__TO_BE_MERGED(DOMString html, optional SanitizerConfig config = {});
18
+ static Document parseHTML(DOMString html, optional SanitizerConfig config = {});
17
19
  };
18
20
 
19
- dictionary SetHTMLOptions {
20
- Sanitizer sanitizer;
21
+ dictionary SanitizerElementNamespace {
22
+ required DOMString name;
23
+ DOMString? _namespace = "http://www.w3.org/1999/xhtml";
21
24
  };
22
- [SecureContext]
23
- partial interface Element {
24
- undefined setHTML(DOMString input, optional SetHTMLOptions options = {});
25
+
26
+ // Used by "elements"
27
+ dictionary SanitizerElementNamespaceWithAttributes : SanitizerElementNamespace {
28
+ sequence<SanitizerAttribute> attributes;
29
+ sequence<SanitizerAttribute> removeAttributes;
25
30
  };
26
31
 
27
- dictionary SanitizerConfig {
28
- sequence<DOMString> allowElements;
29
- sequence<DOMString> blockElements;
30
- sequence<DOMString> dropElements;
31
- AttributeMatchList allowAttributes;
32
- AttributeMatchList dropAttributes;
33
- boolean allowCustomElements;
34
- boolean allowUnknownMarkup;
35
- boolean allowComments;
32
+ typedef (DOMString or SanitizerElementNamespace) SanitizerElement;
33
+ typedef (DOMString or SanitizerElementNamespaceWithAttributes) SanitizerElementWithAttributes;
34
+
35
+ dictionary SanitizerAttributeNamespace {
36
+ required DOMString name;
37
+ DOMString? _namespace = null;
36
38
  };
39
+ typedef (DOMString or SanitizerAttributeNamespace) SanitizerAttribute;
40
+
41
+ dictionary SanitizerConfig {
42
+ sequence<SanitizerElementWithAttributes> elements;
43
+ sequence<SanitizerElement> removeElements;
44
+ sequence<SanitizerElement> replaceWithChildrenElements;
37
45
 
38
- typedef record<DOMString, sequence<DOMString>> AttributeMatchList;
46
+ sequence<SanitizerAttribute> attributes;
47
+ sequence<SanitizerAttribute> removeAttributes;
48
+
49
+ boolean comments;
50
+ boolean dataAttributes;
51
+ };
package/url.idl CHANGED
@@ -8,6 +8,7 @@
8
8
  interface URL {
9
9
  constructor(USVString url, optional USVString base);
10
10
 
11
+ static URL? parse(USVString url, optional USVString base);
11
12
  static boolean canParse(USVString url, optional USVString base);
12
13
 
13
14
  stringifier attribute USVString href;
@@ -9,6 +9,8 @@ partial dictionary AudioEncoderConfig {
9
9
 
10
10
  dictionary OpusEncoderConfig {
11
11
  OpusBitstreamFormat format = "opus";
12
+ OpusSignal signal = "auto";
13
+ OpusApplication application = "audio";
12
14
  [EnforceRange] unsigned long long frameDuration = 20000;
13
15
  [EnforceRange] unsigned long complexity;
14
16
  [EnforceRange] unsigned long packetlossperc = 0;
@@ -20,3 +22,15 @@ enum OpusBitstreamFormat {
20
22
  "opus",
21
23
  "ogg",
22
24
  };
25
+
26
+ enum OpusSignal {
27
+ "auto",
28
+ "music",
29
+ "voice",
30
+ };
31
+
32
+ enum OpusApplication {
33
+ "voip",
34
+ "audio",
35
+ "lowdelay",
36
+ };
package/webcodecs.idl CHANGED
@@ -158,8 +158,8 @@ dictionary VideoDecoderConfig {
158
158
 
159
159
  dictionary AudioEncoderConfig {
160
160
  required DOMString codec;
161
- [EnforceRange] unsigned long sampleRate;
162
- [EnforceRange] unsigned long numberOfChannels;
161
+ [EnforceRange] required unsigned long sampleRate;
162
+ [EnforceRange] required unsigned long numberOfChannels;
163
163
  [EnforceRange] unsigned long long bitrate;
164
164
  BitrateMode bitrateMode = "variable";
165
165
  };
package/webnn.idl CHANGED
@@ -64,11 +64,7 @@ enum MLOperandDataType {
64
64
  };
65
65
 
66
66
  dictionary MLOperandDescriptor {
67
- // The operand type.
68
67
  required MLOperandDataType dataType;
69
-
70
- // The dimensions field is empty for scalar operands,
71
- // and non-empty for tensor operands.
72
68
  sequence<[EnforceRange] unsigned long> dimensions = [];
73
69
  };
74
70
 
@@ -122,7 +118,7 @@ dictionary MLBatchNormalizationOptions {
122
118
 
123
119
  partial interface MLGraphBuilder {
124
120
  MLOperand batchNormalization(MLOperand input, MLOperand mean, MLOperand variance,
125
- optional MLBatchNormalizationOptions options = {});
121
+ optional MLBatchNormalizationOptions options = {});
126
122
  };
127
123
 
128
124
  partial interface MLGraphBuilder {
@@ -162,7 +158,9 @@ dictionary MLConv2dOptions {
162
158
  };
163
159
 
164
160
  partial interface MLGraphBuilder {
165
- MLOperand conv2d(MLOperand input, MLOperand filter, optional MLConv2dOptions options = {});
161
+ MLOperand conv2d(MLOperand input,
162
+ MLOperand filter,
163
+ optional MLConv2dOptions options = {});
166
164
  };
167
165
 
168
166
  enum MLConvTranspose2dFilterOperandLayout {
@@ -242,7 +240,9 @@ dictionary MLGatherOptions {
242
240
  };
243
241
 
244
242
  partial interface MLGraphBuilder {
245
- MLOperand gather(MLOperand input, MLOperand indices, optional MLGatherOptions options = {});
243
+ MLOperand gather(MLOperand input,
244
+ MLOperand indices,
245
+ optional MLGatherOptions options = {});
246
246
  };
247
247
 
248
248
  dictionary MLGemmOptions {
@@ -329,7 +329,7 @@ dictionary MLInstanceNormalizationOptions {
329
329
 
330
330
  partial interface MLGraphBuilder {
331
331
  MLOperand instanceNormalization(MLOperand input,
332
- optional MLInstanceNormalizationOptions options = {});
332
+ optional MLInstanceNormalizationOptions options = {});
333
333
  };
334
334
 
335
335
  dictionary MLLayerNormalizationOptions {
@@ -340,7 +340,8 @@ dictionary MLLayerNormalizationOptions {
340
340
  };
341
341
 
342
342
  partial interface MLGraphBuilder {
343
- MLOperand layerNormalization(MLOperand input, optional MLLayerNormalizationOptions options = {});
343
+ MLOperand layerNormalization(MLOperand input,
344
+ optional MLLayerNormalizationOptions options = {});
344
345
  };
345
346
 
346
347
  dictionary MLLeakyReluOptions {
@@ -532,9 +533,10 @@ dictionary MLSplitOptions {
532
533
  };
533
534
 
534
535
  partial interface MLGraphBuilder {
535
- sequence<MLOperand> split(MLOperand input,
536
- ([EnforceRange] unsigned long or sequence<[EnforceRange] unsigned long>) splits,
537
- optional MLSplitOptions options = {});
536
+ sequence<MLOperand> split(
537
+ MLOperand input,
538
+ ([EnforceRange] unsigned long or sequence<[EnforceRange] unsigned long>) splits,
539
+ optional MLSplitOptions options = {});
538
540
  };
539
541
 
540
542
  partial interface MLGraphBuilder {
package/webrtc.idl CHANGED
@@ -434,8 +434,8 @@ dictionary RTCIceParameters {
434
434
  };
435
435
 
436
436
  dictionary RTCIceCandidatePair {
437
- RTCIceCandidate local;
438
- RTCIceCandidate remote;
437
+ required RTCIceCandidate local;
438
+ required RTCIceCandidate remote;
439
439
  };
440
440
 
441
441
  enum RTCIceGathererState {