Skip to content

Commit

Permalink
Editorial: use more bikeshed shorthands (#172)
Browse files Browse the repository at this point in the history
SHA: 4188005
Reason: push, by marcoscaceres

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
marcoscaceres and github-actions[bot] committed May 8, 2024
1 parent e04eedf commit 0cc2372
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
<meta content="Bikeshed version 82ce88815, updated Thu Sep 7 16:33:55 2023 -0700" name="generator">
<link href="https://www.w3.org/TR/orientation-event/" rel="canonical">
<meta content="abbeb981e8ab066498f36f5526b0f6a6b57f91fd" name="document-revision">
<meta content="4188005254ad72dc32453e9664e8e920f085c857" name="document-revision">
<style>/* Boilerplate: style-autolinks */
.css.css, .property.property, .descriptor.descriptor {
color: var(--a-normal-text);
Expand Down Expand Up @@ -1358,7 +1358,7 @@ <h3 class="heading settled" data-level="6.1" id="deviceorientation"><span class=
</ol>
</ol>
</div>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="significant-change-in-orientation">significant change in orientation</dfn> indicates a difference in orientation values compared to the previous ones that warrants the firing of a <a class="idl-code" data-link-type="event" href="#def-deviceorientation" id="ref-for-def-deviceorientation③"><code>deviceorientation</code></a> or <a class="idl-code" data-link-type="event" href="#def-deviceorientationabsolute" id="ref-for-def-deviceorientationabsolute①"><code>deviceorientationabsolute</code></a> event. The process of determining whether a <a data-link-type="dfn" href="#significant-change-in-orientation" id="ref-for-significant-change-in-orientation">significant change in orientation</a> has occurred is <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#implementation-defined" id="ref-for-implementation-defined①">implementation-defined</a>, though a maximum threshold for change of 1 degree is recommended. Implementations may also consider that it has occurred if they have reason to believe that the page does not have sufficiently fresh data.</p>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="significant-change-in-orientation">significant change in orientation</dfn> indicates a difference in orientation values compared to the previous ones that warrants the firing of a <a class="idl-code" data-link-type="event" href="#def-deviceorientation" id="ref-for-def-deviceorientation③">deviceorientation</a> or <a class="idl-code" data-link-type="event" href="#def-deviceorientationabsolute" id="ref-for-def-deviceorientationabsolute①">deviceorientationabsolute</a> event. The process of determining whether a <a data-link-type="dfn" href="#significant-change-in-orientation" id="ref-for-significant-change-in-orientation">significant change in orientation</a> has occurred is <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#implementation-defined" id="ref-for-implementation-defined①">implementation-defined</a>, though a maximum threshold for change of 1 degree is recommended. Implementations may also consider that it has occurred if they have reason to believe that the page does not have sufficiently fresh data.</p>
<p class="note" role="note"><span class="marker">Note:</span> Implementations must take <a href="#automation">§ 9 Automation</a> into account to determine whether a <a data-link-type="dfn" href="#significant-change-in-orientation" id="ref-for-significant-change-in-orientation①">significant change in orientation</a> has occurred, so that a virtual sensor reading update causes it to be assessed.</p>
<div class="algorithm" data-algorithm="deviceorientation firing steps">
Whenever a <a data-link-type="dfn" href="#significant-change-in-orientation" id="ref-for-significant-change-in-orientation②">significant change in orientation</a> occurs, the user agent must execute the following steps on a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/document-sequences.html#navigable" id="ref-for-navigable">navigable</a>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/document-sequences.html#nav-window" id="ref-for-nav-window">active window</a> <var>window</var>:
Expand Down Expand Up @@ -1401,9 +1401,9 @@ <h3 class="heading settled" data-level="6.2" id="deviceorientationabsolute"><spa
};
</pre>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="Window" data-dfn-type="attribute" data-export id="dom-window-ondeviceorientationabsolute"><code>ondeviceorientationabsolute</code></dfn> attribute is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-idl-attributes" id="ref-for-event-handler-idl-attributes①">event handler IDL attribute</a> for the <code>ondeviceorientationabsolute</code> <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#event-handlers" id="ref-for-event-handlers①">event handler</a>, whose <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-event-type" id="ref-for-event-handler-event-type①">event handler event type</a> is <dfn class="dfn-paneled idl-code" data-dfn-for="Window" data-dfn-type="event" data-export id="def-deviceorientationabsolute"><code>deviceorientationabsolute</code></dfn>.</p>
<p>A <a class="idl-code" data-link-type="event" href="#def-deviceorientationabsolute" id="ref-for-def-deviceorientationabsolute③"><code>deviceorientationabsolute</code></a> event is completely analogous to the <a class="idl-code" data-link-type="event" href="#def-deviceorientation" id="ref-for-def-deviceorientation⑤"><code>deviceorientation</code></a> event, except that it must always provide <a data-link-type="dfn" href="#absolute-orientation" id="ref-for-absolute-orientation④">absolute orientation</a> data.</p>
<p>A <a class="idl-code" data-link-type="event" href="#def-deviceorientationabsolute" id="ref-for-def-deviceorientationabsolute③">deviceorientationabsolute</a> event is completely analogous to the <a class="idl-code" data-link-type="event" href="#def-deviceorientation" id="ref-for-def-deviceorientation⑤">deviceorientation</a> event, except that it must always provide <a data-link-type="dfn" href="#absolute-orientation" id="ref-for-absolute-orientation④">absolute orientation</a> data.</p>
<div class="algorithm" data-algorithm="deviceorientationabsolute firing steps">
Whenever a <a data-link-type="dfn" href="#significant-change-in-orientation" id="ref-for-significant-change-in-orientation③">significant change in orientation</a> occurs, the user agent must execute the following steps on a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/document-sequences.html#navigable" id="ref-for-navigable①">navigable</a>s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/document-sequences.html#nav-window" id="ref-for-nav-window①">active window</a> <var>window</var>:
Whenever a <a data-link-type="dfn" href="#significant-change-in-orientation" id="ref-for-significant-change-in-orientation③">significant change in orientation</a> occurs, the user agent must execute the following steps on a <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/document-sequences.html#navigable" id="ref-for-navigable①">navigable</a>'s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/document-sequences.html#nav-window" id="ref-for-nav-window①">active window</a> <var>window</var>:
<ol>
<li data-md>
<p><a data-link-type="dfn" href="#fire-an-orientation-event" id="ref-for-fire-an-orientation-event①">Fire an orientation event</a> with <a class="idl-code" data-link-type="event" href="#def-deviceorientationabsolute" id="ref-for-def-deviceorientationabsolute④">deviceorientationabsolute</a>, <var>window</var>, and true.</p>
Expand Down Expand Up @@ -1431,9 +1431,9 @@ <h4 class="heading settled" data-level="6.3.1" id="device-motion-event-accelerat
<dd data-md>
<p>The device’s acceleration rate along the Z axis, or null. It is initially null.</p>
</dl>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventAcceleration" data-dfn-type="attribute" data-export id="dom-devicemotioneventacceleration-x"><code>x</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this②">this</a>s <a data-link-type="dfn" href="#devicemotioneventacceleration-x-axis-acceleration" id="ref-for-devicemotioneventacceleration-x-axis-acceleration">x axis acceleration</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventAcceleration" data-dfn-type="attribute" data-export id="dom-devicemotioneventacceleration-y"><code>y</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this③">this</a>s <a data-link-type="dfn" href="#devicemotioneventacceleration-y-axis-acceleration" id="ref-for-devicemotioneventacceleration-y-axis-acceleration">y axis acceleration</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventAcceleration" data-dfn-type="attribute" data-export id="dom-devicemotioneventacceleration-z"><code>z</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this④">this</a>s <a data-link-type="dfn" href="#devicemotioneventacceleration-z-axis-acceleration" id="ref-for-devicemotioneventacceleration-z-axis-acceleration">z axis acceleration</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventAcceleration" data-dfn-type="attribute" data-export id="dom-devicemotioneventacceleration-x"><code>x</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this②">this</a>'s <a data-link-type="dfn" href="#devicemotioneventacceleration-x-axis-acceleration" id="ref-for-devicemotioneventacceleration-x-axis-acceleration">x axis acceleration</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventAcceleration" data-dfn-type="attribute" data-export id="dom-devicemotioneventacceleration-y"><code>y</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this③">this</a>'s <a data-link-type="dfn" href="#devicemotioneventacceleration-y-axis-acceleration" id="ref-for-devicemotioneventacceleration-y-axis-acceleration">y axis acceleration</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventAcceleration" data-dfn-type="attribute" data-export id="dom-devicemotioneventacceleration-z"><code>z</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this④">this</a>'s <a data-link-type="dfn" href="#devicemotioneventacceleration-z-axis-acceleration" id="ref-for-devicemotioneventacceleration-z-axis-acceleration">z axis acceleration</a>.</p>
<h4 class="heading settled" data-level="6.3.2" id="device-motion-event-rotation-rate-api"><span class="secno">6.3.2. </span><span class="content">The DeviceMotionEventRotationRate interface</span><a class="self-link" href="#device-motion-event-rotation-rate-api"></a></h4>
<pre class="idl highlight def">[<a class="idl-code" data-link-type="extended-attribute" href="https://webidl.spec.whatwg.org/#Exposed" id="ref-for-Exposed②"><c- g>Exposed</c-></a>=<c- n>Window</c->, <a class="idl-code" data-link-type="extended-attribute" href="https://webidl.spec.whatwg.org/#SecureContext" id="ref-for-SecureContext④"><c- g>SecureContext</c-></a>]
<c- b>interface</c-> <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="devicemotioneventrotationrate"><code><c- g>DeviceMotionEventRotationRate</c-></code></dfn> {
Expand All @@ -1454,9 +1454,9 @@ <h4 class="heading settled" data-level="6.3.2" id="device-motion-event-rotation-
<dd data-md>
<p>The device’s rotation rate about the Z axis, or null. It is initially null.</p>
</dl>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventRotationRate" data-dfn-type="attribute" data-export id="dom-devicemotioneventrotationrate-alpha"><code>alpha</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this⑤">this</a>s <a data-link-type="dfn" href="#devicemotioneventrotationrate-x-axis-rotation-rate" id="ref-for-devicemotioneventrotationrate-x-axis-rotation-rate">x axis rotation rate</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventRotationRate" data-dfn-type="attribute" data-export id="dom-devicemotioneventrotationrate-beta"><code>beta</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this⑥">this</a>s <a data-link-type="dfn" href="#devicemotioneventrotationrate-y-axis-rotation-rate" id="ref-for-devicemotioneventrotationrate-y-axis-rotation-rate">y axis rotation rate</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventRotationRate" data-dfn-type="attribute" data-export id="dom-devicemotioneventrotationrate-gamma"><code>gamma</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this⑦">this</a>s <a data-link-type="dfn" href="#devicemotioneventrotationrate-z-axis-rotation-rate" id="ref-for-devicemotioneventrotationrate-z-axis-rotation-rate">z axis rotation rate</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventRotationRate" data-dfn-type="attribute" data-export id="dom-devicemotioneventrotationrate-alpha"><code>alpha</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this⑤">this</a>'s <a data-link-type="dfn" href="#devicemotioneventrotationrate-x-axis-rotation-rate" id="ref-for-devicemotioneventrotationrate-x-axis-rotation-rate">x axis rotation rate</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventRotationRate" data-dfn-type="attribute" data-export id="dom-devicemotioneventrotationrate-beta"><code>beta</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this⑥">this</a>'s <a data-link-type="dfn" href="#devicemotioneventrotationrate-y-axis-rotation-rate" id="ref-for-devicemotioneventrotationrate-y-axis-rotation-rate">y axis rotation rate</a>.</p>
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="DeviceMotionEventRotationRate" data-dfn-type="attribute" data-export id="dom-devicemotioneventrotationrate-gamma"><code>gamma</code></dfn> getter steps are to return the value of <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this⑦">this</a>'s <a data-link-type="dfn" href="#devicemotioneventrotationrate-z-axis-rotation-rate" id="ref-for-devicemotioneventrotationrate-z-axis-rotation-rate">z axis rotation rate</a>.</p>
<h4 class="heading settled" data-level="6.3.3" id="device-motion-event-api"><span class="secno">6.3.3. </span><span class="content">The DeviceMotionEvent interface</span><a class="self-link" href="#device-motion-event-api"></a></h4>
<pre class="idl highlight def"><c- b>partial</c-> <c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="https://html.spec.whatwg.org/multipage/nav-history-apis.html#window" id="ref-for-window③"><c- g>Window</c-></a> {
[<a class="idl-code" data-link-type="extended-attribute" href="https://webidl.spec.whatwg.org/#SecureContext" id="ref-for-SecureContext⑤"><c- g>SecureContext</c-></a>] <c- b>attribute</c-> <a data-link-type="idl-name" href="https://html.spec.whatwg.org/multipage/webappapis.html#eventhandler" id="ref-for-eventhandler②"><c- n>EventHandler</c-></a> <a class="idl-code" data-link-type="attribute" data-type="EventHandler" href="#dom-window-ondevicemotion" id="ref-for-dom-window-ondevicemotion"><c- g>ondevicemotion</c-></a>;
Expand Down

0 comments on commit 0cc2372

Please sign in to comment.