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

Re: [device-posture] Adding fold position to identify orientation instead of identify device model (#63)

From: Alexis Menard via GitHub <sysbot+gh@w3.org>
Date: Wed, 28 Jul 2021 17:55:48 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-888506464-1627494946-sysbot+gh@w3.org>
I believe that foldable should implement the Window Segment API because I believe the two are complimentary.

For example in the folded state, we would return two segments and thanks to the API you would know where the fold is. The implementation would be straightforward when the browser window is full screen, slightly more tricky in the case you mentioned (popup window). And you can even do that with CSS.

All in all exposing the fold position is somewhat duplicating the information that the Window Segment API/CSS Media Spanning is providing. I think the only thing we would add over there is exposing the type of hinge (transparent vs non-transparent).


@kenchris @diekus what do you think?

GitHub Notification of comment by darktears
Please view or discuss this issue at https://github.com/w3c/device-posture/issues/63#issuecomment-888506464 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 28 July 2021 17:55:49 UTC

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