diff --git a/compatibility.bs b/compatibility.bs index 3fc49d1..77ca967 100644 --- a/compatibility.bs +++ b/compatibility.bs @@ -15,7 +15,7 @@ urlPrefix: https://w3c.github.io/screen-orientation/; type: interface text: ScreenOrientation; url: #screenorientation-interface type: dfn - text: update the orientation information; url: #dfn-update-the-orientation-information + text: current orientation angle; url: #dfn-current-orientation-angle urlPrefix: https://www.w3.org/TR/CSS/; spec: CSS2 type: dfn text: vendor prefix; url: #vendor-prefix @@ -780,9 +780,9 @@ compatibility with the web. window.orientation angle -The possible values for the window.orientation angle -are: -90, 0, 90, 180. User agents must support -the -90, 0 and 90 values and may optionally support +The possible integer values for the window.orientation +angle are: -90, 0, 90, 180. User agents must +support the -90, 0 and 90 values and may optionally support 180.

@@ -796,15 +796,12 @@ In order to determine the current window.ori angle, the user agent must run the following steps:

    -
  1. Return the result of step 3 of the {{ScreenOrientation}}'s - update the orientation information algorithm with the following changes: +
  2. Let |orientationAngle| be the current orientation angle.
      -
    1. If the orientation angle is less than or equal to 180, return the orientation angle -
    2. If the orientation angle is greater than 180, return the orientation angle - 360. -
    3. If the resulting orientation angle is 180 and the user agent does not support that value, - return 0. - +
    4. If |orientationAngle| is less than 180, return |orientationAngle|. +
    5. If |orientationAngle| is 180, and the [=user agent=] supports that value, return + |orientationAngle|, else return 0. +
    6. If |orientationAngle| is greater than 180, return |orientationAngle| - 360.
@@ -833,12 +830,6 @@ supported on all {{Window}} objects and <{body}> elements as attrib -
- WebKit also has this on - HTMLFrameSetElement. - It's unclear if this is needed for compatibility. -
-

The User-Agent String

The User-Agent header field syntax is formally defined by [[!HTTP-SEMANTICS]] and