diff --git a/index.html b/index.html index 0ef0762..954e217 100644 --- a/index.html +++ b/index.html @@ -312,6 +312,55 @@
+ partial interface Window {
+ readonly attribute short orientation;
+ attribute EventHandler onorientationchange;
+ };
+
+ + When getting the {{Window/orientation}} attribute, the [=user agent=] MUST run + the following steps: +
++ User agents MUST support the `-90`, `0` and `90` values and MAY optionally support `180`. +
++ `0` represents the natural orientation, `-90` represents 90 degrees clockwise, + `90` represents 90 degrees counterclockwise, and `180` represents 180 degrees + from natural orientation. +
++ The {{Window/onorientationchange}} attribute is an [=event handler IDL attribute=] for + the {{Window/onorientationchange}} [=event handler=], whose [=event handler event type=] + is orientationchange. +
+