Skip to content

Commit

Permalink
Merge pull request #114 from w3c/xfq/angle
Browse files Browse the repository at this point in the history
Clarify the behavior of ScreenOrientation.angle
  • Loading branch information
mounirlamouri committed May 9, 2018
2 parents 2a16e96 + fff981b commit 4d5765b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,19 @@ <h2>
MUST return the <a>responsible document</a>'s <a>current orientation
angle</a>.
</p>
<div class='note'>
<p><a>angle</a> indicates how far the user has turned the device
counterclockwise from the natural orientation. When the device is
rotated 90° counterclockwise, the screen compensates by
rotating 90° clockwise, so <a>angle</a> returns <code>90</code>.</p>

<p>If the device is rotated 90° clockwise from its natural
orientation, the screen compensates by rotating 90°
counterclockwise, so <a>angle</a> returns <code>270</code>.</p>

<p>The value returned by this property is always in the range 0-359.
It never returns negative values.</p>
</div>
<p>
The <dfn>onchange</dfn> attribute is an <a>event handler</a> whose
corresponding <a>event handler event type</a> is
Expand Down

0 comments on commit 4d5765b

Please sign in to comment.