Sitemap
Samsung Internet Developers

Writings from the Samsung Internet Developer Relations Team. For more info see our disclaimer: https://hub.samsunginter.net/about-blog

Folding the Web

7 min readSep 18, 2020

--

Foldable devices

sample images of different types of foldable devices
different types of “foldables”

a foldable is a device that folds

Foldable Related APIs

Companies working on support for foldable devices

Screen Fold API

Screen Fold API logo
diagram of the postures available in the Screen Fold API (laptop, flat, book, tablet, tent, no fold)

Use Cases

Mapping between postures and angles

Examples

@media (screen-fold-posture: laptop) and (spanning: single-fold-horizontal){
body {
display: flex;
flex-flow: column nowrap;
}
.videocall-area, .videocall-controls {
flex: 1 1 env(fold-bottom);
}
}

State of the API

Devices and Sensors Working Group
Samsung Internet Beta
Screen Fold API behind a flag in Samsung Internet custom build
Screen Fold basic demo on a Galaxy Fold2 device
html {
background-color: blue;
}
@media (max-screen-fold-angle: 120deg) {
html {
background-color: red;
}
}
Screen Fold Settings widget

The Road Ahead

for any questions.

Acknowledgements

. She has lent her support and her CSS expertize from the beginning with every weird idea that comes into my head. Additionally, even though in it’s infancy, this work is possible due to the great advice from my co-editor, Kenneth, and to the internal support from , and the amazing engineering team in Suwon, Baul and Kangil. ✨

--

--

Samsung Internet Developers
Samsung Internet Developers

Published in Samsung Internet Developers

Writings from the Samsung Internet Developer Relations Team. For more info see our disclaimer: https://hub.samsunginter.net/about-blog

Diego González
Diego González

Written by Diego González

a preview of ramblings inside my head

No responses yet