mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 14cfa4d648cc1c853b4153268df672d21425f8c1
This commit is contained in:
parent
1b73cf3352
commit
75736751d9
1213 changed files with 19434 additions and 12344 deletions
|
@ -0,0 +1,4 @@
|
|||
[Constructor(optional SensorOptions sensorOptions), SecureContext, Exposed=Window]
|
||||
interface AmbientLightSensor : Sensor {
|
||||
readonly attribute double? illuminance;
|
||||
};
|
|
@ -89,15 +89,14 @@ interface CaretPosition {
|
|||
|
||||
enum ScrollLogicalPosition { "start", "center", "end", "nearest" };
|
||||
dictionary ScrollIntoViewOptions : ScrollOptions {
|
||||
ScrollLogicalPosition block = "center";
|
||||
ScrollLogicalPosition inline = "center";
|
||||
ScrollLogicalPosition block = "start";
|
||||
ScrollLogicalPosition inline = "nearest";
|
||||
};
|
||||
|
||||
partial interface Element {
|
||||
DOMRectList getClientRects();
|
||||
[NewObject] DOMRect getBoundingClientRect();
|
||||
void scrollIntoView();
|
||||
void scrollIntoView((boolean or object) arg);
|
||||
void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg);
|
||||
void scroll(optional ScrollToOptions options);
|
||||
void scroll(unrestricted double x, unrestricted double y);
|
||||
void scrollTo(optional ScrollToOptions options);
|
||||
|
|
File diff suppressed because it is too large
Load diff
23
tests/wpt/web-platform-tests/interfaces/wake-lock.idl
Normal file
23
tests/wpt/web-platform-tests/interfaces/wake-lock.idl
Normal file
|
@ -0,0 +1,23 @@
|
|||
enum WakeLockType {
|
||||
"screen",
|
||||
"system"
|
||||
};
|
||||
|
||||
partial interface Navigator {
|
||||
[SecureContext] Promise<WakeLock> getWakeLock(WakeLockType type);
|
||||
};
|
||||
|
||||
[SecureContext,
|
||||
Exposed=Window]
|
||||
interface WakeLock : EventTarget {
|
||||
readonly attribute WakeLockType type;
|
||||
readonly attribute boolean active;
|
||||
attribute EventHandler onactivechange;
|
||||
WakeLockRequest createRequest();
|
||||
};
|
||||
|
||||
[SecureContext,
|
||||
Exposed=Window]
|
||||
interface WakeLockRequest {
|
||||
void cancel();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue