diff --git a/index.html b/index.html index 88179a51..899ab5b3 100644 --- a/index.html +++ b/index.html @@ -8093,37 +8093,36 @@
To get the input state given session -and browsing context: +and top-level traversable:
Assert: browsing context is a top-level browsing
+ Assert: top-level traversable is a top-level browsing
context.
Let input state map
be session's browsing context input state map.
If input state map does not
- [=map/exist|contain=] browsing context, set input
- state map[browsing context] to create an input
+ [=map/exist|contain=] top-level traversable, set input
+ state map[top-level traversable] to create an input
state.
- Return input state map[browsing
- context].
+ Return input state map[top-level traversable].
To reset the input state given session -and browsing context: +and top-level traversable:
Assert: browsing context is a top-level browsing
+ Assert: top-level traversable is a top-level browsing
context.
Let input state map
be session's browsing context input state map.
- If input state map[browsing context]
- [=map/exists=], then [=remove=] input state map[browsing
- context].
+ If input state map[top-level
+ traversable] [=map/exists=], then [=remove=]
+ input state map[top-level traversable].
To create an input state: @@ -8286,7 +8285,7 @@
To get coordinates relative to an origin
given source, x offset, y offset,
-origin, browsing context, and actions
+origin, target navigable, and actions
options:
Let top-level traversable be target
+ navigable&pos;s [=navigable/top-level traversable=].
+
+ Let origin navigable be target
+ navigable.
+
Run the substeps of the first matching value
of origin
Let origin navigable id be the result
+ of getting a property named " Set origin navigable to the result of
+ trying to [=get a navigable=] with
+ origin navigable.
+
+ If origin navigable is no longer open,
+ return error with error code no such window.
+
+ If origin navigable&pos;s [=navigable/top-level
+ traversable=] is not equal to top-level traversable,
+ the return error with error code no such frame.
+
+ Let x equal x offset and
+ y equal y offset.
+ Let element be the result of trying to
run actions options' get element origin
- steps with origin and browsing context.
+ steps with origin and target navigable.
If element is null, return error with error
code no such element.
@@ -8392,9 +8421,43 @@ Let (x, y) be convert to top-level
+ traversable viewport coordinates with origin
+ navigable, x, and y.
+
Return (x, y)
+ To convert to top-level traversable viewport coordinates
+given origin navigable, x and y:
+
+ Let navigable be origin navigable.
+
+ While navigable is not null:
+
+ Let container to the [=navigable/container=] of navigable.
+
+ If container is null then break.
+
+ Let rectangle be the first element of the {{DOMRect}} sequence
+ returned by calling {{Element/getClientRects()}} on element.
+
+ Note: this is phrased as calling a DOM method, but should be
+ interpreted as invoking the underlying algorithm used to implement that DOM method.
+
+ Set x to x + rectangle's x coordinate.
+
+ Set y to y + rectangle's y coordinate.
+
+ Set navigable to the the [=navigable/parent=] of navigable.
+ Return the tuple (x, y).
+ To extract an action sequence given
input state, parameters, and actions
options:
@@ -8973,9 +9036,10 @@ If origin is not equal to " Set the To dispatch actions given input
-state, actions by tick, browsing
-context, and actions options:
+state Wait for an action queue token with input state.
Let actions result be the result of
dispatch actions inner with input state, actions by
- tick, browsing context, and actions options.
+ tick Dequeue input state's actions queue.
Assert: this returns token
@@ -9159,23 +9223,20 @@ To dispatch actions inner given input
-state, actions by tick, browsing
-context, and actions options:
+state
+
+
@@ -8371,12 +8376,36 @@
Processing actions
type
" results in "viewport
"
+
+
+ context
"
+ from origin.
+
+
Processing actions
+
+
+
+
+
+ Processing actions
origin equal "viewport
".
viewport
"
- or "pointer
", and actions options is
- element origin steps given origin return false,
- return error with error code invalid argument.
+ or "pointer
", and the actions options
+ is element origin steps given origin return false,
+ return error with error code invalid
+ argument.
origin
property of action
to origin.
@@ -9142,15 +9206,15 @@ Dispatching actions
, target navigable, and actions options.
Dispatching actions
For each item tick actions in actions by tick:
Let tick duration be the result of computing the tick duration with argument tick actions.
Try to dispatch tick actions with input state, tick actions, tick duration, - browsing context, and actions options. + target navigable, and actions options.
Wait until the following conditions are all met: @@ -9226,12 +9287,15 @@
To dispatch tick actions given input state, tick actions, tick duration, - browsing context, and actions options: + target navigable, and actions options:
For each action object in tick actions:
Let input id be equal to the value of action object's id property. @@ -9249,6 +9313,9 @@
Let subtype be action object's subtype. +
Let top-level traversable be target + navigable's top-level traversable. +
Let algorithm be the value of the column dispatch action algorithm from the following table where the source type column is source type and @@ -9271,8 +9338,9 @@
If subtype is "keyDown
", append
a copy of action object with the subtype
@@ -9290,7 +9358,7 @@
To dispatch a list of actions given input -state, actions, browsing context, +state, actions, target navigable, and actions options:
To dispatch a pause action given action object, source, global key state, tick duration, -browsing context, and actions options: +top-level traversable, target navigable, +and actions options:
Return success with data null
.
@@ -9587,8 +9656,9 @@
To dispatch a keyDown action given action -object, source, global key state, tick -duration, browsing context, and actions options: +object, source, global key state, +tick duration, top-level traversable, +target navigable, and actions options:
Let raw key be equal to the @@ -9629,7 +9699,7 @@
Perform implementation-specific action dispatch steps - on browsing context equivalent to pressing a key on the + on top-level traversable equivalent to pressing a key on the keyboard in accordance with the requirements of [[UI-EVENTS]], and producing the following events, as appropriate, with the specified properties. This will always produce events including at least @@ -9689,8 +9759,8 @@
To dispatch a keyUp action given, action object, source, global key state, -tick duration, browsing context, -and actions options: +tick duration, top-level traversable, +target navigable, and actions options:
Let raw key be equal to @@ -9731,7 +9801,7 @@
pressed
property.
Perform implementation-specific action dispatch steps - on browsing context equivalent to releasing a key on the + on top-level traversable equivalent to releasing a key on the keyboard in accordance with the requirements of [[UI-EVENTS]], and producing at least the following events with the specified properties: @@ -9767,8 +9837,8 @@
To dispatch a pointerDown action given action object, source, global key - state, tick duration, browsing context, - and actions options: + state, tick duration, top-level traversable, + target navigable, and actions options:
Let pointerType be equal to @@ -9818,7 +9888,7 @@
azimuthAngle
property.
Perform implementation-specific action dispatch steps - on browsing context equivalent to pressing the button + on top-level traversable equivalent to pressing the button numbered button on the pointer with pointerId equal to source's pointerId, having type pointerType at viewport x coordinate x, @@ -9843,8 +9913,8 @@
To dispatch a pointerUp action given, action object, source, global key -state, tick duration, browsing context, -and actions options: +state, tick duration, top-level traversable, +target navigable, and actions options:
Let pointerType be equal to @@ -9869,7 +9939,7 @@
Perform implementation-specific action dispatch steps - on browsing context equivalent to releasing the button + on top-level traversable equivalent to releasing the button numbered button on the pointer with pointerId equal to input source's pointerId, having type pointerType at viewport x coordinate x, @@ -9892,8 +9962,8 @@
To dispatch a pointerMove action given action object, source, global key state, -tick duration, browsing context, -and actions options: +tick duration, top-level traversable, +target navigable, and actions options:
Let x offset be equal to the x
@@ -9908,7 +9978,7 @@
Let (x, y) be the result
of trying to get coordinates relative to an origin
with source, x offset, y offset,
- origin, browsing context, and actions
+ origin, target navigable, and actions
options.
If x is less than 0 or greater than the width of
@@ -10017,7 +10087,7 @@ Perform implementation-specific action dispatch steps
- on browsing context equivalent to moving the pointer
+ on top-level traversable equivalent to moving the pointer
with pointerId equal to input source's pointerId,
having type pointerType from viewport x
coordinate current x, viewport y
@@ -10083,12 +10153,12 @@ To dispatch a pointerCancel action given action
object, source, global key state,
-tick duration, browsing context,
-and actions options:
+tick duration, top-level traversable,
+target navigable, and actions options:
Perform implementation-specific action dispatch steps
- on browsing context equivalent to cancelling the any
+ on top-level traversable equivalent to cancelling the any
action of the pointer with pointerId equal to source's
pointerId item. having type pointerType, in accordance
with the requirements of [[UI-EVENTS]] and [[POINTER-EVENTS]].
@@ -10103,8 +10173,8 @@ To dispatch a scroll action given action
object, source, global key state,
-tick duration, browsing context,
-and actions options:
+tick duration, top-level traversable,
+target navigable, and actions options:
Let x offset be equal to the Let (x, y) be the result
of trying to get coordinates relative to an origin
with source, x offset, y offset,
- origin, browsing context, and actions
+ origin, target navigable, and actions
options.
If x is less than 0 or greater than the width of
@@ -10198,7 +10268,7 @@ Perform implementation-specific action dispatch steps
- on browsing context equivalent to wheel scroll at
+ on top-level traversable equivalent to wheel scroll at
viewport x coordinate x, viewport y
coordinate y, deltaX value delta x, deltaY
value delta y, in accordance with the requirements of
Pointer actions
state's buttons
property.
Pointer actions
Wheel actions
x
@@ -10119,7 +10189,7 @@ Wheel actions
Wheel actions