@webref/idl 3.29.0 → 3.30.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.
- package/ANGLE_instanced_arrays.idl +12 -0
- package/CSP.idl +56 -0
- package/DOM-Parsing.idl +26 -0
- package/EXT_blend_minmax.idl +10 -0
- package/EXT_color_buffer_float.idl +8 -0
- package/EXT_color_buffer_half_float.idl +12 -0
- package/EXT_disjoint_timer_query.idl +30 -0
- package/EXT_disjoint_timer_query_webgl2.idl +14 -0
- package/EXT_float_blend.idl +8 -0
- package/EXT_frag_depth.idl +8 -0
- package/EXT_sRGB.idl +12 -0
- package/EXT_shader_texture_lod.idl +8 -0
- package/EXT_texture_compression_bptc.idl +12 -0
- package/EXT_texture_compression_rgtc.idl +12 -0
- package/EXT_texture_filter_anisotropic.idl +10 -0
- package/EXT_texture_norm16.idl +16 -0
- package/FedCM.idl +67 -0
- package/FileAPI.idl +100 -0
- package/IndexedDB.idl +226 -0
- package/KHR_parallel_shader_compile.idl +9 -0
- package/OES_draw_buffers_indexed.idl +26 -0
- package/OES_element_index_uint.idl +8 -0
- package/OES_fbo_render_mipmap.idl +8 -0
- package/OES_standard_derivatives.idl +9 -0
- package/OES_texture_float.idl +7 -0
- package/OES_texture_float_linear.idl +7 -0
- package/OES_texture_half_float.idl +9 -0
- package/OES_texture_half_float_linear.idl +7 -0
- package/OES_vertex_array_object.idl +18 -0
- package/OVR_multiview2.idl +14 -0
- package/SVG.idl +693 -0
- package/WEBGL_blend_equation_advanced_coherent.idl +23 -0
- package/WEBGL_clip_cull_distance.idl +20 -0
- package/WEBGL_color_buffer_float.idl +11 -0
- package/WEBGL_compressed_texture_astc.idl +41 -0
- package/WEBGL_compressed_texture_etc.idl +19 -0
- package/WEBGL_compressed_texture_etc1.idl +10 -0
- package/WEBGL_compressed_texture_pvrtc.idl +13 -0
- package/WEBGL_compressed_texture_s3tc.idl +13 -0
- package/WEBGL_compressed_texture_s3tc_srgb.idl +13 -0
- package/WEBGL_debug_renderer_info.idl +12 -0
- package/WEBGL_debug_shaders.idl +11 -0
- package/WEBGL_depth_texture.idl +9 -0
- package/WEBGL_draw_buffers.idl +46 -0
- package/WEBGL_draw_instanced_base_vertex_base_instance.idl +14 -0
- package/WEBGL_lose_context.idl +10 -0
- package/WEBGL_multi_draw.idl +32 -0
- package/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +26 -0
- package/WEBGL_provoking_vertex.idl +13 -0
- package/WebCryptoAPI.idl +237 -0
- package/accelerometer.idl +40 -0
- package/ambient-light.idl +14 -0
- package/anchors.idl +37 -0
- package/attribution-reporting-api.idl +12 -0
- package/audio-output.idl +17 -0
- package/autoplay-detection.idl +19 -0
- package/background-fetch.idl +89 -0
- package/background-sync.idl +30 -0
- package/badging.idl +19 -0
- package/battery-status.idl +21 -0
- package/beacon.idl +8 -0
- package/capture-handle-identity.idl +27 -0
- package/clipboard-apis.idl +51 -0
- package/close-watcher.idl +19 -0
- package/compat.idl +13 -0
- package/compression.idl +16 -0
- package/compute-pressure.idl +40 -0
- package/console.idl +34 -0
- package/contact-picker.idl +44 -0
- package/content-index.idl +46 -0
- package/cookie-store.idl +110 -0
- package/crash-reporting.idl +10 -0
- package/credential-management.idl +105 -0
- package/csp-embedded-enforcement.idl +8 -0
- package/csp-next.idl +21 -0
- package/css-animation-worklet.idl +37 -0
- package/css-animations-2.idl +9 -0
- package/css-animations.idl +47 -0
- package/css-cascade-6.idl +10 -0
- package/css-cascade.idl +18 -0
- package/css-color-5.idl +12 -0
- package/css-conditional.idl +27 -0
- package/css-contain-3.idl +10 -0
- package/css-contain.idl +13 -0
- package/css-counter-styles.idl +23 -0
- package/css-font-loading.idl +134 -0
- package/css-fonts.idl +36 -0
- package/css-highlight-api.idl +27 -0
- package/css-images-4.idl +8 -0
- package/css-layout-api.idl +144 -0
- package/css-masking.idl +20 -0
- package/css-nav.idl +48 -0
- package/css-nesting.idl +10 -0
- package/css-paint-api.idl +39 -0
- package/css-parser-api.idl +76 -0
- package/css-properties-values-api.idl +23 -0
- package/css-pseudo.idl +16 -0
- package/css-regions.idl +29 -0
- package/css-shadow-parts.idl +8 -0
- package/css-transitions-2.idl +9 -0
- package/css-transitions.idl +25 -0
- package/css-typed-om.idl +423 -0
- package/css-view-transitions.idl +18 -0
- package/cssom-view.idl +200 -0
- package/cssom.idl +159 -0
- package/custom-state-pseudo-class.idl +14 -0
- package/datacue.idl +12 -0
- package/deprecation-reporting.idl +15 -0
- package/device-memory.idl +14 -0
- package/device-posture.idl +21 -0
- package/digital-goods.idl +44 -0
- package/dom.idl +645 -0
- package/edit-context.idl +111 -0
- package/element-timing.idl +22 -0
- package/encoding.idl +59 -0
- package/encrypted-media.idl +125 -0
- package/entries-api.idl +71 -0
- package/event-timing.idl +29 -0
- package/eyedropper-api.idl +18 -0
- package/fenced-frame.idl +49 -0
- package/fetch.idl +117 -0
- package/fido.idl +47 -0
- package/file-system-access.idl +72 -0
- package/filter-effects.idl +341 -0
- package/font-metrics-api.idl +42 -0
- package/fs.idl +97 -0
- package/fullscreen.idl +35 -0
- package/gamepad-extensions.idl +71 -0
- package/gamepad.idl +49 -0
- package/generic-sensor.idl +60 -0
- package/geolocation-sensor.idl +47 -0
- package/geolocation.idl +65 -0
- package/geometry.idl +290 -0
- package/get-installed-related-apps.idl +16 -0
- package/gpc-spec.idl +10 -0
- package/gyroscope.idl +24 -0
- package/hr-time.idl +19 -0
- package/html-media-capture.idl +8 -0
- package/html.idl +2716 -0
- package/idle-detection.idl +31 -0
- package/image-capture.idl +160 -0
- package/image-resource.idl +11 -0
- package/ink-enhancement.idl +32 -0
- package/input-device-capabilities.idl +24 -0
- package/input-events.idl +14 -0
- package/intersection-observer.idl +46 -0
- package/intervention-reporting.idl +14 -0
- package/is-input-pending.idl +16 -0
- package/js-self-profiling.idl +44 -0
- package/keyboard-lock.idl +14 -0
- package/keyboard-map.idl +15 -0
- package/largest-contentful-paint.idl +15 -0
- package/layout-instability.idl +20 -0
- package/local-font-access.idl +24 -0
- package/longtasks.idl +19 -0
- package/magnetometer.idl +46 -0
- package/manifest-incubations.idl +24 -0
- package/mathml-core.idl +9 -0
- package/media-capabilities.idl +115 -0
- package/media-playback-quality.idl +18 -0
- package/media-source.idl +91 -0
- package/mediacapture-automation.idl +36 -0
- package/mediacapture-fromelement.idl +17 -0
- package/mediacapture-handle-actions.idl +31 -0
- package/mediacapture-region.idl +15 -0
- package/mediacapture-streams.idl +248 -0
- package/mediacapture-transform.idl +23 -0
- package/mediacapture-viewport.idl +14 -0
- package/mediasession.idl +84 -0
- package/mediastream-recording.idl +60 -0
- package/model-element.idl +9 -0
- package/mst-content-hint.idl +18 -0
- package/navigation-timing.idl +71 -0
- package/netinfo.idl +43 -0
- package/notifications.idl +101 -0
- package/orientation-event.idl +82 -0
- package/orientation-sensor.idl +35 -0
- package/package.json +1 -1
- package/page-lifecycle.idl +19 -0
- package/paint-timing.idl +7 -0
- package/payment-handler.idl +131 -0
- package/payment-request.idl +112 -0
- package/performance-measure-memory.idl +30 -0
- package/performance-timeline.idl +49 -0
- package/periodic-background-sync.idl +34 -0
- package/permissions-policy.idl +29 -0
- package/permissions-request.idl +8 -0
- package/permissions-revoke.idl +8 -0
- package/permissions.idl +41 -0
- package/picture-in-picture.idl +41 -0
- package/pointerevents.idl +64 -0
- package/pointerlock.idl +28 -0
- package/portals.idl +50 -0
- package/prefer-current-tab.idl +8 -0
- package/prerendering-revamped.idl +15 -0
- package/presentation-api.idl +95 -0
- package/private-click-measurement.idl +8 -0
- package/proximity.idl +18 -0
- package/push-api.idl +93 -0
- package/raw-camera-access.idl +18 -0
- package/referrer-policy.idl +16 -0
- package/remote-playback.idl +32 -0
- package/reporting.idl +39 -0
- package/requestStorageAccessForOrigin.idl +12 -0
- package/requestidlecallback.idl +20 -0
- package/resize-observer.idl +37 -0
- package/resource-timing.idl +40 -0
- package/sanitizer-api.idl +38 -0
- package/savedata.idl +10 -0
- package/scheduling-apis.idl +57 -0
- package/screen-capture.idl +85 -0
- package/screen-orientation.idl +35 -0
- package/screen-wake-lock.idl +24 -0
- package/scroll-animations.idl +41 -0
- package/scroll-to-text-fragment.idl +12 -0
- package/secure-payment-confirmation.idl +52 -0
- package/selection-api.idl +46 -0
- package/serial.idl +85 -0
- package/server-timing.idl +17 -0
- package/service-workers.idl +240 -0
- package/shape-detection-api.idl +69 -0
- package/speech-api.idl +202 -0
- package/storage-access.idl +9 -0
- package/storage.idl +25 -0
- package/streams.idl +222 -0
- package/svg-animations.idl +68 -0
- package/testutils.idl +9 -0
- package/text-detection-api.idl +18 -0
- package/touch-events.idl +79 -0
- package/trust-token-api.idl +29 -0
- package/trusted-types.idl +71 -0
- package/turtledove.idl +63 -0
- package/ua-client-hints.idl +44 -0
- package/uievents.idl +248 -0
- package/url.idl +44 -0
- package/urlpattern.idl +59 -0
- package/user-timing.idl +34 -0
- package/vibration.idl +10 -0
- package/video-rvfc.idl +27 -0
- package/virtual-keyboard.idl +21 -0
- package/wai-aria.idl +59 -0
- package/wasm-js-api.idl +110 -0
- package/wasm-web-api.idl +11 -0
- package/web-animations-2.idl +102 -0
- package/web-animations.idl +149 -0
- package/web-app-launch.idl +19 -0
- package/web-bluetooth.idl +251 -0
- package/web-locks.idl +50 -0
- package/web-nfc.idl +81 -0
- package/web-otp.idl +21 -0
- package/web-share.idl +16 -0
- package/webaudio.idl +674 -0
- package/webauthn.idl +349 -0
- package/webcodecs-aac-codec-registration.idl +17 -0
- package/webcodecs-avc-codec-registration.idl +17 -0
- package/webcodecs-flac-codec-registration.idl +13 -0
- package/webcodecs-hevc-codec-registration.idl +17 -0
- package/webcodecs-opus-codec-registration.idl +22 -0
- package/webcodecs-vp9-codec-registration.idl +12 -0
- package/webcodecs.idl +500 -0
- package/webcrypto-secure-curves.idl +8 -0
- package/webdriver.idl +9 -0
- package/webgl1.idl +745 -0
- package/webgl2.idl +582 -0
- package/webgpu.idl +1267 -0
- package/webhid.idl +127 -0
- package/webidl.idl +48 -0
- package/webmidi.idl +91 -0
- package/webnn.idl +549 -0
- package/webrtc-encoded-transform.idl +127 -0
- package/webrtc-ice.idl +24 -0
- package/webrtc-identity.idl +97 -0
- package/webrtc-priority.idl +24 -0
- package/webrtc-stats.idl +288 -0
- package/webrtc-svc.idl +8 -0
- package/webrtc.idl +628 -0
- package/websockets.idl +48 -0
- package/webtransport.idl +143 -0
- package/webusb.idl +249 -0
- package/webvtt.idl +40 -0
- package/webxr-ar-module.idl +29 -0
- package/webxr-depth-sensing.idl +57 -0
- package/webxr-dom-overlays.idl +31 -0
- package/webxr-gamepads-module.idl +8 -0
- package/webxr-hand-input.idl +66 -0
- package/webxr-hit-test.idl +69 -0
- package/webxr-lighting-estimation.idl +39 -0
- package/webxr.idl +295 -0
- package/webxrlayers.idl +212 -0
- package/window-controls-overlay.idl +28 -0
- package/window-placement.idl +42 -0
- package/xhr.idl +99 -0
package/css-typed-om.idl
ADDED
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: CSS Typed OM Level 1 (https://drafts.css-houdini.org/css-typed-om-1/)
|
|
5
|
+
|
|
6
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
7
|
+
interface CSSStyleValue {
|
|
8
|
+
stringifier;
|
|
9
|
+
[Exposed=Window] static CSSStyleValue parse(USVString property, USVString cssText);
|
|
10
|
+
[Exposed=Window] static sequence<CSSStyleValue> parseAll(USVString property, USVString cssText);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
14
|
+
interface StylePropertyMapReadOnly {
|
|
15
|
+
iterable<USVString, sequence<CSSStyleValue>>;
|
|
16
|
+
(undefined or CSSStyleValue) get(USVString property);
|
|
17
|
+
sequence<CSSStyleValue> getAll(USVString property);
|
|
18
|
+
boolean has(USVString property);
|
|
19
|
+
readonly attribute unsigned long size;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
[Exposed=Window]
|
|
23
|
+
interface StylePropertyMap : StylePropertyMapReadOnly {
|
|
24
|
+
undefined set(USVString property, (CSSStyleValue or USVString)... values);
|
|
25
|
+
undefined append(USVString property, (CSSStyleValue or USVString)... values);
|
|
26
|
+
undefined delete(USVString property);
|
|
27
|
+
undefined clear();
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
partial interface Element {
|
|
31
|
+
[SameObject] StylePropertyMapReadOnly computedStyleMap();
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
partial interface CSSStyleRule {
|
|
35
|
+
[SameObject] readonly attribute StylePropertyMap styleMap;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
partial interface mixin ElementCSSInlineStyle {
|
|
39
|
+
[SameObject] readonly attribute StylePropertyMap attributeStyleMap;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
43
|
+
interface CSSUnparsedValue : CSSStyleValue {
|
|
44
|
+
constructor(sequence<CSSUnparsedSegment> members);
|
|
45
|
+
iterable<CSSUnparsedSegment>;
|
|
46
|
+
readonly attribute unsigned long length;
|
|
47
|
+
getter CSSUnparsedSegment (unsigned long index);
|
|
48
|
+
setter CSSUnparsedSegment (unsigned long index, CSSUnparsedSegment val);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
typedef (USVString or CSSVariableReferenceValue) CSSUnparsedSegment;
|
|
52
|
+
|
|
53
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
54
|
+
interface CSSVariableReferenceValue {
|
|
55
|
+
constructor(USVString variable, optional CSSUnparsedValue? fallback = null);
|
|
56
|
+
attribute USVString variable;
|
|
57
|
+
readonly attribute CSSUnparsedValue? fallback;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
61
|
+
interface CSSKeywordValue : CSSStyleValue {
|
|
62
|
+
constructor(USVString value);
|
|
63
|
+
attribute USVString value;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
typedef (DOMString or CSSKeywordValue) CSSKeywordish;
|
|
67
|
+
|
|
68
|
+
typedef (double or CSSNumericValue) CSSNumberish;
|
|
69
|
+
|
|
70
|
+
enum CSSNumericBaseType {
|
|
71
|
+
"length",
|
|
72
|
+
"angle",
|
|
73
|
+
"time",
|
|
74
|
+
"frequency",
|
|
75
|
+
"resolution",
|
|
76
|
+
"flex",
|
|
77
|
+
"percent",
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
dictionary CSSNumericType {
|
|
81
|
+
long length;
|
|
82
|
+
long angle;
|
|
83
|
+
long time;
|
|
84
|
+
long frequency;
|
|
85
|
+
long resolution;
|
|
86
|
+
long flex;
|
|
87
|
+
long percent;
|
|
88
|
+
CSSNumericBaseType percentHint;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
92
|
+
interface CSSNumericValue : CSSStyleValue {
|
|
93
|
+
CSSNumericValue add(CSSNumberish... values);
|
|
94
|
+
CSSNumericValue sub(CSSNumberish... values);
|
|
95
|
+
CSSNumericValue mul(CSSNumberish... values);
|
|
96
|
+
CSSNumericValue div(CSSNumberish... values);
|
|
97
|
+
CSSNumericValue min(CSSNumberish... values);
|
|
98
|
+
CSSNumericValue max(CSSNumberish... values);
|
|
99
|
+
|
|
100
|
+
boolean equals(CSSNumberish... value);
|
|
101
|
+
|
|
102
|
+
CSSUnitValue to(USVString unit);
|
|
103
|
+
CSSMathSum toSum(USVString... units);
|
|
104
|
+
CSSNumericType type();
|
|
105
|
+
|
|
106
|
+
[Exposed=Window] static CSSNumericValue parse(USVString cssText);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
110
|
+
interface CSSUnitValue : CSSNumericValue {
|
|
111
|
+
constructor(double value, USVString unit);
|
|
112
|
+
attribute double value;
|
|
113
|
+
readonly attribute USVString unit;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
117
|
+
interface CSSMathValue : CSSNumericValue {
|
|
118
|
+
readonly attribute CSSMathOperator operator;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
122
|
+
interface CSSMathSum : CSSMathValue {
|
|
123
|
+
constructor(CSSNumberish... args);
|
|
124
|
+
readonly attribute CSSNumericArray values;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
128
|
+
interface CSSMathProduct : CSSMathValue {
|
|
129
|
+
constructor(CSSNumberish... args);
|
|
130
|
+
readonly attribute CSSNumericArray values;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
134
|
+
interface CSSMathNegate : CSSMathValue {
|
|
135
|
+
constructor(CSSNumberish arg);
|
|
136
|
+
readonly attribute CSSNumericValue value;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
140
|
+
interface CSSMathInvert : CSSMathValue {
|
|
141
|
+
constructor(CSSNumberish arg);
|
|
142
|
+
readonly attribute CSSNumericValue value;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
146
|
+
interface CSSMathMin : CSSMathValue {
|
|
147
|
+
constructor(CSSNumberish... args);
|
|
148
|
+
readonly attribute CSSNumericArray values;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
152
|
+
interface CSSMathMax : CSSMathValue {
|
|
153
|
+
constructor(CSSNumberish... args);
|
|
154
|
+
readonly attribute CSSNumericArray values;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
158
|
+
interface CSSMathClamp : CSSMathValue {
|
|
159
|
+
constructor(CSSNumberish lower, CSSNumberish value, CSSNumberish upper);
|
|
160
|
+
readonly attribute CSSNumericValue lower;
|
|
161
|
+
readonly attribute CSSNumericValue value;
|
|
162
|
+
readonly attribute CSSNumericValue upper;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
166
|
+
interface CSSNumericArray {
|
|
167
|
+
iterable<CSSNumericValue>;
|
|
168
|
+
readonly attribute unsigned long length;
|
|
169
|
+
getter CSSNumericValue (unsigned long index);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
enum CSSMathOperator {
|
|
173
|
+
"sum",
|
|
174
|
+
"product",
|
|
175
|
+
"negate",
|
|
176
|
+
"invert",
|
|
177
|
+
"min",
|
|
178
|
+
"max",
|
|
179
|
+
"clamp",
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
partial namespace CSS {
|
|
183
|
+
CSSUnitValue number(double value);
|
|
184
|
+
CSSUnitValue percent(double value);
|
|
185
|
+
|
|
186
|
+
// <length>
|
|
187
|
+
CSSUnitValue em(double value);
|
|
188
|
+
CSSUnitValue ex(double value);
|
|
189
|
+
CSSUnitValue ch(double value);
|
|
190
|
+
CSSUnitValue ic(double value);
|
|
191
|
+
CSSUnitValue rem(double value);
|
|
192
|
+
CSSUnitValue lh(double value);
|
|
193
|
+
CSSUnitValue rlh(double value);
|
|
194
|
+
CSSUnitValue vw(double value);
|
|
195
|
+
CSSUnitValue vh(double value);
|
|
196
|
+
CSSUnitValue vi(double value);
|
|
197
|
+
CSSUnitValue vb(double value);
|
|
198
|
+
CSSUnitValue vmin(double value);
|
|
199
|
+
CSSUnitValue vmax(double value);
|
|
200
|
+
CSSUnitValue svw(double value);
|
|
201
|
+
CSSUnitValue svh(double value);
|
|
202
|
+
CSSUnitValue svi(double value);
|
|
203
|
+
CSSUnitValue svb(double value);
|
|
204
|
+
CSSUnitValue svmin(double value);
|
|
205
|
+
CSSUnitValue svmax(double value);
|
|
206
|
+
CSSUnitValue lvw(double value);
|
|
207
|
+
CSSUnitValue lvh(double value);
|
|
208
|
+
CSSUnitValue lvi(double value);
|
|
209
|
+
CSSUnitValue lvb(double value);
|
|
210
|
+
CSSUnitValue lvmin(double value);
|
|
211
|
+
CSSUnitValue lvmax(double value);
|
|
212
|
+
CSSUnitValue dvw(double value);
|
|
213
|
+
CSSUnitValue dvh(double value);
|
|
214
|
+
CSSUnitValue dvi(double value);
|
|
215
|
+
CSSUnitValue dvb(double value);
|
|
216
|
+
CSSUnitValue dvmin(double value);
|
|
217
|
+
CSSUnitValue dvmax(double value);
|
|
218
|
+
CSSUnitValue cqw(double value);
|
|
219
|
+
CSSUnitValue cqh(double value);
|
|
220
|
+
CSSUnitValue cqi(double value);
|
|
221
|
+
CSSUnitValue cqb(double value);
|
|
222
|
+
CSSUnitValue cqmin(double value);
|
|
223
|
+
CSSUnitValue cqmax(double value);
|
|
224
|
+
CSSUnitValue cm(double value);
|
|
225
|
+
CSSUnitValue mm(double value);
|
|
226
|
+
CSSUnitValue Q(double value);
|
|
227
|
+
CSSUnitValue in(double value);
|
|
228
|
+
CSSUnitValue pt(double value);
|
|
229
|
+
CSSUnitValue pc(double value);
|
|
230
|
+
CSSUnitValue px(double value);
|
|
231
|
+
|
|
232
|
+
// <angle>
|
|
233
|
+
CSSUnitValue deg(double value);
|
|
234
|
+
CSSUnitValue grad(double value);
|
|
235
|
+
CSSUnitValue rad(double value);
|
|
236
|
+
CSSUnitValue turn(double value);
|
|
237
|
+
|
|
238
|
+
// <time>
|
|
239
|
+
CSSUnitValue s(double value);
|
|
240
|
+
CSSUnitValue ms(double value);
|
|
241
|
+
|
|
242
|
+
// <frequency>
|
|
243
|
+
CSSUnitValue Hz(double value);
|
|
244
|
+
CSSUnitValue kHz(double value);
|
|
245
|
+
|
|
246
|
+
// <resolution>
|
|
247
|
+
CSSUnitValue dpi(double value);
|
|
248
|
+
CSSUnitValue dpcm(double value);
|
|
249
|
+
CSSUnitValue dppx(double value);
|
|
250
|
+
|
|
251
|
+
// <flex>
|
|
252
|
+
CSSUnitValue fr(double value);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
256
|
+
interface CSSTransformValue : CSSStyleValue {
|
|
257
|
+
constructor(sequence<CSSTransformComponent> transforms);
|
|
258
|
+
iterable<CSSTransformComponent>;
|
|
259
|
+
readonly attribute unsigned long length;
|
|
260
|
+
getter CSSTransformComponent (unsigned long index);
|
|
261
|
+
setter CSSTransformComponent (unsigned long index, CSSTransformComponent val);
|
|
262
|
+
|
|
263
|
+
readonly attribute boolean is2D;
|
|
264
|
+
DOMMatrix toMatrix();
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
typedef (CSSNumericValue or CSSKeywordish) CSSPerspectiveValue;
|
|
268
|
+
|
|
269
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
270
|
+
interface CSSTransformComponent {
|
|
271
|
+
stringifier;
|
|
272
|
+
attribute boolean is2D;
|
|
273
|
+
DOMMatrix toMatrix();
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
277
|
+
interface CSSTranslate : CSSTransformComponent {
|
|
278
|
+
constructor(CSSNumericValue x, CSSNumericValue y, optional CSSNumericValue z);
|
|
279
|
+
attribute CSSNumericValue x;
|
|
280
|
+
attribute CSSNumericValue y;
|
|
281
|
+
attribute CSSNumericValue z;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
285
|
+
interface CSSRotate : CSSTransformComponent {
|
|
286
|
+
constructor(CSSNumericValue angle);
|
|
287
|
+
constructor(CSSNumberish x, CSSNumberish y, CSSNumberish z, CSSNumericValue angle);
|
|
288
|
+
attribute CSSNumberish x;
|
|
289
|
+
attribute CSSNumberish y;
|
|
290
|
+
attribute CSSNumberish z;
|
|
291
|
+
attribute CSSNumericValue angle;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
295
|
+
interface CSSScale : CSSTransformComponent {
|
|
296
|
+
constructor(CSSNumberish x, CSSNumberish y, optional CSSNumberish z);
|
|
297
|
+
attribute CSSNumberish x;
|
|
298
|
+
attribute CSSNumberish y;
|
|
299
|
+
attribute CSSNumberish z;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
303
|
+
interface CSSSkew : CSSTransformComponent {
|
|
304
|
+
constructor(CSSNumericValue ax, CSSNumericValue ay);
|
|
305
|
+
attribute CSSNumericValue ax;
|
|
306
|
+
attribute CSSNumericValue ay;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
310
|
+
interface CSSSkewX : CSSTransformComponent {
|
|
311
|
+
constructor(CSSNumericValue ax);
|
|
312
|
+
attribute CSSNumericValue ax;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
316
|
+
interface CSSSkewY : CSSTransformComponent {
|
|
317
|
+
constructor(CSSNumericValue ay);
|
|
318
|
+
attribute CSSNumericValue ay;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
/* Note that skew(x,y) is *not* the same as skewX(x) skewY(y),
|
|
322
|
+
thus the separate interfaces for all three. */
|
|
323
|
+
|
|
324
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
325
|
+
interface CSSPerspective : CSSTransformComponent {
|
|
326
|
+
constructor(CSSPerspectiveValue length);
|
|
327
|
+
attribute CSSPerspectiveValue length;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
331
|
+
interface CSSMatrixComponent : CSSTransformComponent {
|
|
332
|
+
constructor(DOMMatrixReadOnly matrix, optional CSSMatrixComponentOptions options = {});
|
|
333
|
+
attribute DOMMatrix matrix;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
dictionary CSSMatrixComponentOptions {
|
|
337
|
+
boolean is2D;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
341
|
+
interface CSSImageValue : CSSStyleValue {
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
345
|
+
interface CSSColorValue : CSSStyleValue {
|
|
346
|
+
[Exposed=Window] static (CSSColorValue or CSSStyleValue) parse(USVString cssText);
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
typedef (CSSNumberish or CSSKeywordish) CSSColorRGBComp;
|
|
350
|
+
typedef (CSSNumberish or CSSKeywordish) CSSColorPercent;
|
|
351
|
+
typedef (CSSNumberish or CSSKeywordish) CSSColorNumber;
|
|
352
|
+
typedef (CSSNumberish or CSSKeywordish) CSSColorAngle;
|
|
353
|
+
|
|
354
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
355
|
+
interface CSSRGB : CSSColorValue {
|
|
356
|
+
constructor(CSSColorRGBComp r, CSSColorRGBComp g, CSSColorRGBComp b, optional CSSColorPercent alpha = 1);
|
|
357
|
+
attribute CSSColorRGBComp r;
|
|
358
|
+
attribute CSSColorRGBComp g;
|
|
359
|
+
attribute CSSColorRGBComp b;
|
|
360
|
+
attribute CSSColorPercent alpha;
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
364
|
+
interface CSSHSL : CSSColorValue {
|
|
365
|
+
constructor(CSSColorAngle h, CSSColorPercent s, CSSColorPercent l, optional CSSColorPercent alpha = 1);
|
|
366
|
+
attribute CSSColorAngle h;
|
|
367
|
+
attribute CSSColorPercent s;
|
|
368
|
+
attribute CSSColorPercent l;
|
|
369
|
+
attribute CSSColorPercent alpha;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
373
|
+
interface CSSHWB : CSSColorValue {
|
|
374
|
+
constructor(CSSNumericValue h, CSSNumberish w, CSSNumberish b, optional CSSNumberish alpha = 1);
|
|
375
|
+
attribute CSSNumericValue h;
|
|
376
|
+
attribute CSSNumberish w;
|
|
377
|
+
attribute CSSNumberish b;
|
|
378
|
+
attribute CSSNumberish alpha;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
382
|
+
interface CSSLab : CSSColorValue {
|
|
383
|
+
constructor(CSSColorPercent l, CSSColorNumber a, CSSColorNumber b, optional CSSColorPercent alpha = 1);
|
|
384
|
+
attribute CSSColorPercent l;
|
|
385
|
+
attribute CSSColorNumber a;
|
|
386
|
+
attribute CSSColorNumber b;
|
|
387
|
+
attribute CSSColorPercent alpha;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
391
|
+
interface CSSLCH : CSSColorValue {
|
|
392
|
+
constructor(CSSColorPercent l, CSSColorPercent c, CSSColorAngle h, optional CSSColorPercent alpha = 1);
|
|
393
|
+
attribute CSSColorPercent l;
|
|
394
|
+
attribute CSSColorPercent c;
|
|
395
|
+
attribute CSSColorAngle h;
|
|
396
|
+
attribute CSSColorPercent alpha;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
400
|
+
interface CSSOKLab : CSSColorValue {
|
|
401
|
+
constructor(CSSColorPercent l, CSSColorNumber a, CSSColorNumber b, optional CSSColorPercent alpha = 1);
|
|
402
|
+
attribute CSSColorPercent l;
|
|
403
|
+
attribute CSSColorNumber a;
|
|
404
|
+
attribute CSSColorNumber b;
|
|
405
|
+
attribute CSSColorPercent alpha;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
409
|
+
interface CSSOKLCH : CSSColorValue {
|
|
410
|
+
constructor(CSSColorPercent l, CSSColorPercent c, CSSColorAngle h, optional CSSColorPercent alpha = 1);
|
|
411
|
+
attribute CSSColorPercent l;
|
|
412
|
+
attribute CSSColorPercent c;
|
|
413
|
+
attribute CSSColorAngle h;
|
|
414
|
+
attribute CSSColorPercent alpha;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
418
|
+
interface CSSColor : CSSColorValue {
|
|
419
|
+
constructor(CSSKeywordish colorSpace, sequence<CSSColorPercent> channels, optional CSSNumberish alpha = 1);
|
|
420
|
+
attribute CSSKeywordish colorSpace;
|
|
421
|
+
attribute ObservableArray<CSSColorPercent> channels;
|
|
422
|
+
attribute CSSNumberish alpha;
|
|
423
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: CSS View Transitions Module Level 1 (https://drafts.csswg.org/css-view-transitions-1/)
|
|
5
|
+
|
|
6
|
+
partial interface Document {
|
|
7
|
+
ViewTransition startViewTransition(optional UpdateCallback? updateCallback = null);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
callback UpdateCallback = Promise<any> ();
|
|
11
|
+
|
|
12
|
+
[Exposed=Window]
|
|
13
|
+
interface ViewTransition {
|
|
14
|
+
readonly attribute Promise<undefined> updateCallbackDone;
|
|
15
|
+
readonly attribute Promise<undefined> ready;
|
|
16
|
+
readonly attribute Promise<undefined> finished;
|
|
17
|
+
undefined skipTransition();
|
|
18
|
+
};
|
package/cssom-view.idl
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: CSSOM View Module (https://drafts.csswg.org/cssom-view-1/)
|
|
5
|
+
|
|
6
|
+
enum ScrollBehavior { "auto", "instant", "smooth" };
|
|
7
|
+
|
|
8
|
+
dictionary ScrollOptions {
|
|
9
|
+
ScrollBehavior behavior = "auto";
|
|
10
|
+
};
|
|
11
|
+
dictionary ScrollToOptions : ScrollOptions {
|
|
12
|
+
unrestricted double left;
|
|
13
|
+
unrestricted double top;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
partial interface Window {
|
|
17
|
+
[NewObject] MediaQueryList matchMedia(CSSOMString query);
|
|
18
|
+
[SameObject, Replaceable] readonly attribute Screen screen;
|
|
19
|
+
[SameObject, Replaceable] readonly attribute VisualViewport? visualViewport;
|
|
20
|
+
|
|
21
|
+
// browsing context
|
|
22
|
+
undefined moveTo(long x, long y);
|
|
23
|
+
undefined moveBy(long x, long y);
|
|
24
|
+
undefined resizeTo(long width, long height);
|
|
25
|
+
undefined resizeBy(long x, long y);
|
|
26
|
+
|
|
27
|
+
// viewport
|
|
28
|
+
[Replaceable] readonly attribute long innerWidth;
|
|
29
|
+
[Replaceable] readonly attribute long innerHeight;
|
|
30
|
+
|
|
31
|
+
// viewport scrolling
|
|
32
|
+
[Replaceable] readonly attribute double scrollX;
|
|
33
|
+
[Replaceable] readonly attribute double pageXOffset;
|
|
34
|
+
[Replaceable] readonly attribute double scrollY;
|
|
35
|
+
[Replaceable] readonly attribute double pageYOffset;
|
|
36
|
+
undefined scroll(optional ScrollToOptions options = {});
|
|
37
|
+
undefined scroll(unrestricted double x, unrestricted double y);
|
|
38
|
+
undefined scrollTo(optional ScrollToOptions options = {});
|
|
39
|
+
undefined scrollTo(unrestricted double x, unrestricted double y);
|
|
40
|
+
undefined scrollBy(optional ScrollToOptions options = {});
|
|
41
|
+
undefined scrollBy(unrestricted double x, unrestricted double y);
|
|
42
|
+
|
|
43
|
+
// client
|
|
44
|
+
[Replaceable] readonly attribute long screenX;
|
|
45
|
+
[Replaceable] readonly attribute long screenLeft;
|
|
46
|
+
[Replaceable] readonly attribute long screenY;
|
|
47
|
+
[Replaceable] readonly attribute long screenTop;
|
|
48
|
+
[Replaceable] readonly attribute long outerWidth;
|
|
49
|
+
[Replaceable] readonly attribute long outerHeight;
|
|
50
|
+
[Replaceable] readonly attribute double devicePixelRatio;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
[Exposed=Window]
|
|
54
|
+
interface MediaQueryList : EventTarget {
|
|
55
|
+
readonly attribute CSSOMString media;
|
|
56
|
+
readonly attribute boolean matches;
|
|
57
|
+
undefined addListener(EventListener? callback);
|
|
58
|
+
undefined removeListener(EventListener? callback);
|
|
59
|
+
attribute EventHandler onchange;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
[Exposed=Window]
|
|
63
|
+
interface MediaQueryListEvent : Event {
|
|
64
|
+
constructor(CSSOMString type, optional MediaQueryListEventInit eventInitDict = {});
|
|
65
|
+
readonly attribute CSSOMString media;
|
|
66
|
+
readonly attribute boolean matches;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
dictionary MediaQueryListEventInit : EventInit {
|
|
70
|
+
CSSOMString media = "";
|
|
71
|
+
boolean matches = false;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
[Exposed=Window]
|
|
75
|
+
interface Screen {
|
|
76
|
+
readonly attribute long availWidth;
|
|
77
|
+
readonly attribute long availHeight;
|
|
78
|
+
readonly attribute long width;
|
|
79
|
+
readonly attribute long height;
|
|
80
|
+
readonly attribute unsigned long colorDepth;
|
|
81
|
+
readonly attribute unsigned long pixelDepth;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
partial interface Document {
|
|
85
|
+
Element? elementFromPoint(double x, double y);
|
|
86
|
+
sequence<Element> elementsFromPoint(double x, double y);
|
|
87
|
+
CaretPosition? caretPositionFromPoint(double x, double y);
|
|
88
|
+
readonly attribute Element? scrollingElement;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
[Exposed=Window]
|
|
92
|
+
interface CaretPosition {
|
|
93
|
+
readonly attribute Node offsetNode;
|
|
94
|
+
readonly attribute unsigned long offset;
|
|
95
|
+
[NewObject] DOMRect? getClientRect();
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
enum ScrollLogicalPosition { "start", "center", "end", "nearest" };
|
|
99
|
+
dictionary ScrollIntoViewOptions : ScrollOptions {
|
|
100
|
+
ScrollLogicalPosition block = "start";
|
|
101
|
+
ScrollLogicalPosition inline = "nearest";
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
dictionary CheckVisibilityOptions {
|
|
105
|
+
boolean checkOpacity = false;
|
|
106
|
+
boolean checkVisibilityCSS = false;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
partial interface Element {
|
|
110
|
+
DOMRectList getClientRects();
|
|
111
|
+
[NewObject] DOMRect getBoundingClientRect();
|
|
112
|
+
|
|
113
|
+
boolean checkVisibility(optional CheckVisibilityOptions options = {});
|
|
114
|
+
|
|
115
|
+
undefined scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {});
|
|
116
|
+
undefined scroll(optional ScrollToOptions options = {});
|
|
117
|
+
undefined scroll(unrestricted double x, unrestricted double y);
|
|
118
|
+
undefined scrollTo(optional ScrollToOptions options = {});
|
|
119
|
+
undefined scrollTo(unrestricted double x, unrestricted double y);
|
|
120
|
+
undefined scrollBy(optional ScrollToOptions options = {});
|
|
121
|
+
undefined scrollBy(unrestricted double x, unrestricted double y);
|
|
122
|
+
attribute unrestricted double scrollTop;
|
|
123
|
+
attribute unrestricted double scrollLeft;
|
|
124
|
+
readonly attribute long scrollWidth;
|
|
125
|
+
readonly attribute long scrollHeight;
|
|
126
|
+
readonly attribute long clientTop;
|
|
127
|
+
readonly attribute long clientLeft;
|
|
128
|
+
readonly attribute long clientWidth;
|
|
129
|
+
readonly attribute long clientHeight;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
partial interface HTMLElement {
|
|
133
|
+
readonly attribute Element? offsetParent;
|
|
134
|
+
readonly attribute long offsetTop;
|
|
135
|
+
readonly attribute long offsetLeft;
|
|
136
|
+
readonly attribute long offsetWidth;
|
|
137
|
+
readonly attribute long offsetHeight;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
partial interface HTMLImageElement {
|
|
141
|
+
readonly attribute long x;
|
|
142
|
+
readonly attribute long y;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
partial interface Range {
|
|
146
|
+
DOMRectList getClientRects();
|
|
147
|
+
[NewObject] DOMRect getBoundingClientRect();
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
partial interface MouseEvent {
|
|
151
|
+
readonly attribute double pageX;
|
|
152
|
+
readonly attribute double pageY;
|
|
153
|
+
readonly attribute double x;
|
|
154
|
+
readonly attribute double y;
|
|
155
|
+
readonly attribute double offsetX;
|
|
156
|
+
readonly attribute double offsetY;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
enum CSSBoxType { "margin", "border", "padding", "content" };
|
|
160
|
+
dictionary BoxQuadOptions {
|
|
161
|
+
CSSBoxType box = "border";
|
|
162
|
+
GeometryNode relativeTo; // XXX default document (i.e. viewport)
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
dictionary ConvertCoordinateOptions {
|
|
166
|
+
CSSBoxType fromBox = "border";
|
|
167
|
+
CSSBoxType toBox = "border";
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
interface mixin GeometryUtils {
|
|
171
|
+
sequence<DOMQuad> getBoxQuads(optional BoxQuadOptions options = {});
|
|
172
|
+
DOMQuad convertQuadFromNode(DOMQuadInit quad, GeometryNode from, optional ConvertCoordinateOptions options = {});
|
|
173
|
+
DOMQuad convertRectFromNode(DOMRectReadOnly rect, GeometryNode from, optional ConvertCoordinateOptions options = {});
|
|
174
|
+
DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options = {}); // XXX z,w turns into 0
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
Text includes GeometryUtils; // like Range
|
|
178
|
+
Element includes GeometryUtils;
|
|
179
|
+
CSSPseudoElement includes GeometryUtils;
|
|
180
|
+
Document includes GeometryUtils;
|
|
181
|
+
|
|
182
|
+
typedef (Text or Element or CSSPseudoElement or Document) GeometryNode;
|
|
183
|
+
|
|
184
|
+
[Exposed=Window]
|
|
185
|
+
interface VisualViewport : EventTarget {
|
|
186
|
+
readonly attribute double offsetLeft;
|
|
187
|
+
readonly attribute double offsetTop;
|
|
188
|
+
|
|
189
|
+
readonly attribute double pageLeft;
|
|
190
|
+
readonly attribute double pageTop;
|
|
191
|
+
|
|
192
|
+
readonly attribute double width;
|
|
193
|
+
readonly attribute double height;
|
|
194
|
+
|
|
195
|
+
readonly attribute double scale;
|
|
196
|
+
|
|
197
|
+
attribute EventHandler onresize;
|
|
198
|
+
attribute EventHandler onscroll;
|
|
199
|
+
attribute EventHandler onscrollend;
|
|
200
|
+
};
|