You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,9 +40,9 @@ Among the values that the device-posture query can take are:
40
40
/*for a monitor scenario*/
41
41
@media (device-posture: flat) and (orientation: portrait) { ... }
42
42
```
43
-
### New JS object in `window.screen`: `posture`
43
+
### New JS object in `window.navigator`: `devicePosture`
44
44
45
-
The Window property screen returns a reference to the screen object associated with the window. It already houses a similar property [`orientation`](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation) that itself has a value for an [angle](https://w3c.github.io/screen-orientation/#idl-index).
45
+
The Navigator property of Window [navigator](https://html.spec.whatwg.org/multipage/system-state.html#the-navigator-object) should host device capabilities and system states.
0 commit comments