Sync interfaces/ with @webref/idl 3.43.0 (#44200)
Co-authored-by: wpt-pr-bot <wpt-pr-bot@users.noreply.github.com>
diff --git a/interfaces/FedCM.idl b/interfaces/FedCM.idl
index a42a2f7..4070d50 100644
--- a/interfaces/FedCM.idl
+++ b/interfaces/FedCM.idl
@@ -26,6 +26,7 @@
interface IdentityCredential : Credential {
static Promise<undefined> disconnect(optional IdentityCredentialDisconnectOptions options = {});
readonly attribute USVString? token;
+ readonly attribute boolean isAutoSelected;
};
dictionary DisconnectedAccount {
diff --git a/interfaces/css-scroll-snap-2.idl b/interfaces/css-scroll-snap-2.idl
new file mode 100644
index 0000000..50cbf69
--- /dev/null
+++ b/interfaces/css-scroll-snap-2.idl
@@ -0,0 +1,33 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content was automatically extracted by Reffy into webref
+// (https://github.com/w3c/webref)
+// Source: CSS Scroll Snap Module Level 2 (https://drafts.csswg.org/css-scroll-snap-2/)
+
+[Exposed=Window]
+interface SnapEvent : Event {
+ constructor(DOMString type, optional SnapEventInit eventInitDict = {});
+ readonly attribute EventTarget? target;
+ readonly attribute SnapTargetList snappedTargets;
+ readonly attribute SnapTargetList snapTargets;
+ readonly attribute boolean invokedProgrammatically;
+ readonly attribute boolean smoothlyScrolled;
+};
+
+[Exposed=Window]
+interface SnapTargetList {
+ readonly attribute SnapTargetArray x;
+ readonly attribute SnapTargetArray y;
+};
+
+[Exposed=Window]
+interface SnapTargetArray {
+ readonly attribute unsigned long length;
+ getter EventTarget? item (unsigned long index);
+};
+
+dictionary SnapEventInit : EventModifierInit {
+ sequence<EventTarget> snappedTargetsX = [];
+ sequence<EventTarget> snappedTargetsY = [];
+ sequence<EventTarget> snapTargetsListX = [];
+ sequence<EventTarget> snapTargetsListY = [];
+};
diff --git a/interfaces/cssom-view.idl b/interfaces/cssom-view.idl
index 4e531a2..3f64113 100644
--- a/interfaces/cssom-view.idl
+++ b/interfaces/cssom-view.idl
@@ -104,6 +104,9 @@
dictionary CheckVisibilityOptions {
boolean checkOpacity = false;
boolean checkVisibilityCSS = false;
+ boolean contentVisibilityAuto = false;
+ boolean opacityProperty = false;
+ boolean visibilityProperty = false;
};
partial interface Element {
diff --git a/interfaces/gamepad-extensions.idl b/interfaces/gamepad-extensions.idl
index d7d7506..81776a4 100644
--- a/interfaces/gamepad-extensions.idl
+++ b/interfaces/gamepad-extensions.idl
@@ -10,38 +10,6 @@
};
[Exposed=Window]
-interface GamepadHapticActuator {
- readonly attribute GamepadHapticActuatorType type;
- boolean canPlayEffectType(GamepadHapticEffectType type);
- Promise<GamepadHapticsResult> playEffect(
- GamepadHapticEffectType type,
- optional GamepadEffectParameters params = {});
- Promise<boolean> pulse(double value, double duration);
- Promise<GamepadHapticsResult> reset();
-};
-
-enum GamepadHapticsResult {
- "complete",
- "preempted"
-};
-
-enum GamepadHapticActuatorType {
- "vibration",
- "dual-rumble"
-};
-
-enum GamepadHapticEffectType {
- "dual-rumble"
-};
-
-dictionary GamepadEffectParameters {
- double duration = 0.0;
- double startDelay = 0.0;
- double strongMagnitude = 0.0;
- double weakMagnitude = 0.0;
-};
-
-[Exposed=Window]
interface GamepadPose {
readonly attribute boolean hasOrientation;
readonly attribute boolean hasPosition;
@@ -67,5 +35,9 @@
readonly attribute FrozenArray<GamepadHapticActuator> hapticActuators;
readonly attribute GamepadPose? pose;
readonly attribute FrozenArray<GamepadTouch>? touchEvents;
- [SameObject] readonly attribute GamepadHapticActuator? vibrationActuator;
+};
+
+[Exposed=Window]
+partial interface GamepadHapticActuator {
+ Promise<boolean> pulse(double value, double duration);
};
diff --git a/interfaces/gamepad.idl b/interfaces/gamepad.idl
index bbc62da..77a22c1 100644
--- a/interfaces/gamepad.idl
+++ b/interfaces/gamepad.idl
@@ -12,6 +12,7 @@
readonly attribute GamepadMappingType mapping;
readonly attribute FrozenArray<double> axes;
readonly attribute FrozenArray<GamepadButton> buttons;
+ [SameObject] readonly attribute GamepadHapticActuator vibrationActuator;
};
[Exposed=Window, SecureContext]
@@ -28,6 +29,32 @@
};
[Exposed=Window]
+interface GamepadHapticActuator {
+ [SameObject] readonly attribute FrozenArray<GamepadHapticEffectType> effects;
+ Promise<GamepadHapticsResult> playEffect(
+ GamepadHapticEffectType type,
+ optional GamepadEffectParameters params = {}
+ );
+ Promise<GamepadHapticsResult> reset();
+};
+
+enum GamepadHapticsResult {
+ "complete",
+ "preempted"
+};
+
+enum GamepadHapticEffectType {
+ "dual-rumble"
+};
+
+dictionary GamepadEffectParameters {
+ unsigned long long duration = 0;
+ unsigned long long startDelay = 0;
+ double strongMagnitude = 0.0;
+ double weakMagnitude = 0.0;
+};
+
+[Exposed=Window]
partial interface Navigator {
sequence<Gamepad?> getGamepads();
};
diff --git a/interfaces/mediasession.idl b/interfaces/mediasession.idl
index 2cca367..57c62df 100644
--- a/interfaces/mediasession.idl
+++ b/interfaces/mediasession.idl
@@ -72,7 +72,7 @@
};
dictionary MediaPositionState {
- double duration;
+ unrestricted double duration;
double playbackRate;
double position;
};
diff --git a/interfaces/webnn.idl b/interfaces/webnn.idl
index ef57f3b..721ee78 100644
--- a/interfaces/webnn.idl
+++ b/interfaces/webnn.idl
@@ -508,7 +508,7 @@
};
partial interface MLGraphBuilder {
- MLOperand reshape(MLOperand input, sequence<unsigned long?> newShape);
+ MLOperand reshape(MLOperand input, sequence<unsigned long> newShape);
};
partial interface MLGraphBuilder {