W3C home > Mailing lists > Public > public-device-apis-log@w3.org > April 2021

[device-posture] Move the posture object out of the Screen interface. (#67)

From: Alexis Menard via GitHub <sysbot+gh@w3.org>
Date: Thu, 22 Apr 2021 15:48:15 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-865104816-1619106493-sysbot+gh@w3.org>
darktears has just created a new issue for https://github.com/w3c/device-posture:

== Move the posture object out of the Screen interface. ==
Now that the specification only covers the posture it seems weird to have the main entry point of the API to be in the `Screen` interface. 

I strongly think we should move it to another place like `window` or `window.navigator`. The thinking is that there is only a single posture at a given time and it's not dependent on the screen.

What does sound best to you folks?

- `window.navigator.posture`

- `window.posture` which is basically `posture`

I strongly think that it we land into a generic object like `navigator` or `window` we should rename the entry point from `posture` to `device_posture`.

Please view or discuss this issue at https://github.com/w3c/device-posture/issues/67 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 22 April 2021 15:48:18 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:58 UTC