Foldable Displays With Surface Duo and React

Last month Microsoft released the long awaited Surface Duo, a foldable, dual-screen mobile device.
While it’s not (yet?) available in Australia, it didn’t stop me being interested in it, in particular because of what they are doing for web …


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

Last month Microsoft released the long awaited Surface Duo, a foldable, dual-screen mobile device. While it’s not (yet?) available in Australia, it didn’t stop me being interested in it, in particular because of what they are doing for web developers. You can read the full blog post here but the key points are: CSS primitives to detect the layout spanning mode CSS variables for screen and hinge dimensions A JavaScript API for getting window segments Basically, the browser sees both displays as a single viewport and it’s up to you to manage how that viewport is utilised, and in particular, how you manage the gap between them (which the browser doesn’t know about).


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2023-12-01T03:03:22+00:00) » Foldable Displays With Surface Duo and React. Retrieved from https://www.scien.cx/2020/10/08/foldable-displays-with-surface-duo-and-react/.
MLA
" » Foldable Displays With Surface Duo and React." Posts on LINQ to Fail | Sciencx - Thursday October 8, 2020, https://www.scien.cx/2020/10/08/foldable-displays-with-surface-duo-and-react/
HARVARD
Posts on LINQ to Fail | Sciencx Thursday October 8, 2020 » Foldable Displays With Surface Duo and React., viewed 2023-12-01T03:03:22+00:00,<https://www.scien.cx/2020/10/08/foldable-displays-with-surface-duo-and-react/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Foldable Displays With Surface Duo and React. [Internet]. [Accessed 2023-12-01T03:03:22+00:00]. Available from: https://www.scien.cx/2020/10/08/foldable-displays-with-surface-duo-and-react/
CHICAGO
" » Foldable Displays With Surface Duo and React." Posts on LINQ to Fail | Sciencx - Accessed 2023-12-01T03:03:22+00:00. https://www.scien.cx/2020/10/08/foldable-displays-with-surface-duo-and-react/
IEEE
" » Foldable Displays With Surface Duo and React." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2020/10/08/foldable-displays-with-surface-duo-and-react/. [Accessed: 2023-12-01T03:03:22+00:00]
rf:citation
» Foldable Displays With Surface Duo and React | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2020/10/08/foldable-displays-with-surface-duo-and-react/ | 2023-12-01T03:03:22+00:00
https://github.com/addpipe/simple-recorderjs-demo