|
129 | 129 | "html": "<p>Let <var>type</var> be <var>event</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://dom.spec.whatwg.org/#dom-event-type\" id=\"ref-for-dom-event-type⑥\">type</a></code> attribute value.</p>"
|
130 | 130 | },
|
131 | 131 | {
|
132 |
| - "html": "<p>If <var>type</var> is not one among <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-keyup\" id=\"ref-for-event-type-keyup②\">keyup</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-compositionstart\" id=\"ref-for-event-type-compositionstart①\">compositionstart</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-input\" id=\"ref-for-event-type-input①\">input</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointercancel-event\" id=\"ref-for-the-pointercancel-event①\">pointercancel</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event③\">pointerup</a></code>, or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-click\" id=\"ref-for-event-type-click③\">click</a></code>, return 0.</p>" |
| 132 | + "html": "<p>If <var>type</var> is not one among <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-keyup\" id=\"ref-for-event-type-keyup②\">keyup</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-compositionstart\" id=\"ref-for-event-type-compositionstart①\">compositionstart</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-input\" id=\"ref-for-event-type-input①\">input</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointercancel-event\" id=\"ref-for-the-pointercancel-event①\">pointercancel</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event③\">pointerup</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-click\" id=\"ref-for-event-type-click③\">click</a></code>, or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-contextmenu\" id=\"ref-for-event-type-contextmenu①\">contextmenu</a></code>, return 0.</p>" |
133 | 133 | },
|
134 | 134 | {
|
135 | 135 | "html": "<p>Let <var>window</var> be <var>event</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\" id=\"ref-for-concept-relevant-global④\">relevant global object</a>.</p>"
|
|
219 | 219 | ]
|
220 | 220 | },
|
221 | 221 | {
|
222 |
| - "html": "Otherwise (<var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointercancel-event\" id=\"ref-for-the-pointercancel-event②\">pointercancel</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event⑤\">pointerup</a></code>, or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-click\" id=\"ref-for-event-type-click④\">click</a></code>):", |
| 222 | + "html": "Otherwise (<var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointercancel-event\" id=\"ref-for-the-pointercancel-event②\">pointercancel</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event⑤\">pointerup</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-click\" id=\"ref-for-event-type-click④\">click</a></code>, or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-contextmenu\" id=\"ref-for-event-type-contextmenu②\">contextmenu</a></code>):", |
223 | 223 | "rationale": "let",
|
224 | 224 | "steps": [
|
225 | 225 | {
|
|
244 | 244 | ]
|
245 | 245 | },
|
246 | 246 | {
|
247 |
| - "html": "<p>Assert that <var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event⑥\">pointerup</a></code> or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointercancel-event\" id=\"ref-for-the-pointercancel-event③\">pointercancel</a></code>.</p>" |
| 247 | + "html": "<p>Assert that <var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event⑥\">pointerup</a></code>, <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointercancel-event\" id=\"ref-for-the-pointercancel-event③\">pointercancel</a></code>, or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-contextmenu\" id=\"ref-for-event-type-contextmenu③\">contextmenu</a></code>.</p>" |
248 | 248 | },
|
249 | 249 | {
|
250 |
| - "html": "<p>If <var>pendingPointerDowns</var>[<var>pointerId</var>] does not exist, return 0.</p>" |
| 250 | + "html": "If <var>pendingPointerDowns</var>[<var>pointerId</var>] does not exist:", |
| 251 | + "rationale": "if", |
| 252 | + "steps": [ |
| 253 | + { |
| 254 | + "html": "<p>If <var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-contextmenu\" id=\"ref-for-event-type-contextmenu④\">contextmenu</a></code>, return <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#user-interaction-value\" id=\"ref-for-user-interaction-value⑦\">user interaction value</a>.</p>" |
| 255 | + }, |
| 256 | + { |
| 257 | + "html": "If <var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event⑦\">pointerup</a></code> and <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#is-contextmenu-triggered\" id=\"ref-for-is-contextmenu-triggered\">is contextmenu triggered</a> flag is true:", |
| 258 | + "rationale": "set", |
| 259 | + "steps": [ |
| 260 | + { |
| 261 | + "html": "<p>Set <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#is-contextmenu-triggered\" id=\"ref-for-is-contextmenu-triggered①\">is contextmenu triggered</a> flag to false.</p>" |
| 262 | + }, |
| 263 | + { |
| 264 | + "html": "<p>Return <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#user-interaction-value\" id=\"ref-for-user-interaction-value⑧\">user interaction value</a>.</p>" |
| 265 | + } |
| 266 | + ] |
| 267 | + }, |
| 268 | + { |
| 269 | + "html": "<p>Otherwise, return 0.</p>" |
| 270 | + } |
| 271 | + ] |
251 | 272 | },
|
252 | 273 | {
|
253 | 274 | "html": "<p>Let <var>pointerDownEntry</var> be <var>pendingPointerDowns</var>[<var>pointerId</var>].</p>"
|
|
256 | 277 | "html": "<p>Assert that <var>pointerDownEntry</var> is a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/event-timing/#performanceeventtiming\" id=\"ref-for-performanceeventtiming①⑧\">PerformanceEventTiming</a></code> entry.</p>"
|
257 | 278 | },
|
258 | 279 | {
|
259 |
| - "html": "If <var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event⑦\">pointerup</a></code>:", |
| 280 | + "html": "If <var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointerup-event\" id=\"ref-for-the-pointerup-event⑧\">pointerup</a></code> or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-contextmenu\" id=\"ref-for-event-type-contextmenu⑤\">contextmenu</a></code>:", |
260 | 281 | "rationale": "increase",
|
261 | 282 | "steps": [
|
262 | 283 | {
|
263 | 284 | "html": "<p><a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#increase-interaction-count\" id=\"ref-for-increase-interaction-count②\">Increase interaction count</a> on <var>window</var>.</p>"
|
264 | 285 | },
|
265 | 286 | {
|
266 |
| - "html": "<p>Set <var>pointerMap</var>[<var>pointerId</var>] to <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#user-interaction-value\" id=\"ref-for-user-interaction-value⑦\">user interaction value</a>.</p>" |
| 287 | + "html": "<p>Set <var>pointerMap</var>[<var>pointerId</var>] to <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#user-interaction-value\" id=\"ref-for-user-interaction-value⑨\">user interaction value</a>.</p>" |
267 | 288 | },
|
268 | 289 | {
|
269 | 290 | "html": "<p>Set <var>pointerDownEntry</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/event-timing/#dom-performanceeventtiming-interactionid\" id=\"ref-for-dom-performanceeventtiming-interactionid⑦\">interactionId</a></code> to <var>pointerMap</var>[<var>pointerId</var>].</p>"
|
|
276 | 297 | {
|
277 | 298 | "html": "<p>Remove <var>pendingPointerDowns</var>[<var>pointerId</var>].</p>"
|
278 | 299 | },
|
| 300 | + { |
| 301 | + "html": "<p>If <var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/uievents/#event-type-contextmenu\" id=\"ref-for-event-type-contextmenu⑥\">contextmenu</a></code>, set <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#is-contextmenu-triggered\" id=\"ref-for-is-contextmenu-triggered②\">is contextmenu triggered</a> to true.</p>" |
| 302 | + }, |
279 | 303 | {
|
280 | 304 | "html": "<p>If <var>type</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/pointerevents/#the-pointercancel-event\" id=\"ref-for-the-pointercancel-event④\">pointercancel</a></code>, return 0.</p>"
|
281 | 305 | },
|
|
369 | 393 | },
|
370 | 394 | {
|
371 | 395 | "html": "<p>Set <var>pendingPointerDowns</var>[<var>pointerId</var>] to <var>timingEntry</var>.</p>"
|
| 396 | + }, |
| 397 | + { |
| 398 | + "html": "<p>Set <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#is-contextmenu-triggered\" id=\"ref-for-is-contextmenu-triggered③\">is contextmenu triggered</a> to false.</p>" |
372 | 399 | }
|
373 | 400 | ]
|
374 | 401 | },
|
|
406 | 433 | "rationale": "increase",
|
407 | 434 | "steps": [
|
408 | 435 | {
|
409 |
| - "html": "<p>Increase <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#user-interaction-value\" id=\"ref-for-user-interaction-value⑧\">user interaction value</a> value by a small number chosen by the user agent.</p>" |
| 436 | + "html": "<p>Increase <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#user-interaction-value\" id=\"ref-for-user-interaction-value①⓪\">user interaction value</a> value by a small number chosen by the user agent.</p>" |
410 | 437 | },
|
411 | 438 | {
|
412 |
| - "html": "<p>Set <var>previousKeyDownEntry</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/event-timing/#dom-performanceeventtiming-interactionid\" id=\"ref-for-dom-performanceeventtiming-interactionid①①\">interactionId</a></code> to <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#user-interaction-value\" id=\"ref-for-user-interaction-value⑨\">user interaction value</a>.</p>" |
| 439 | + "html": "<p>Set <var>previousKeyDownEntry</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/event-timing/#dom-performanceeventtiming-interactionid\" id=\"ref-for-dom-performanceeventtiming-interactionid①①\">interactionId</a></code> to <var>window</var>’s <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/event-timing/#user-interaction-value\" id=\"ref-for-user-interaction-value①①\">user interaction value</a>.</p>" |
413 | 440 | }
|
414 | 441 | ]
|
415 | 442 | },
|
|
0 commit comments