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

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).

https://docs.microsoft.com/en-us/dual-screen/web/css-media-spanning

@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