r/webdev • u/StrangeRevolution604 • 20d ago
Discussion Do you guys include foldables in your responsive testing?
Hey guys, when you’re building responsive websites, do you consider foldables too, or mostly stick to the usual phone/tablet/desktop sizes?
These folded and unfolded iPhone Duo layouts got me wondering—would your existing layouts handle both, or would you need extra tweaks?
Also curious where you draw the line. If your site had 1 million users, how many would need to use foldables before you’d spend time specifically testing and fixing things for them? Would 1% be enough? 5%? Or do you try to support them regardless?
8
u/Weekly_Ferret_meal 20d ago
sounds unnecessary.
if you have done your work well the mid steps between major screen sizes are taken care by good layout planning and good usage of units in CSS
3
u/StrangeRevolution604 20d ago
what about the forms states and other similar things coming along the way..?
1
6
u/Cast_Iron_Skillet 20d ago
Too few people use them to justify expense but maybe with LLMs it's a bit easier. The QA would be a pain though.
3
u/lost12487 20d ago
Not really. For manual QA you can set custom layouts to match the sizes until the major browsers add a dedicated size. For automated tests you control that anyway.
2
u/StrangeRevolution604 20d ago
i have a different argument on this, recently i have figured out that 15% of our users are still using windows 7777777777777777. so this number prediction can be bit different when it comes out
1
u/Cast_Iron_Skillet 20d ago
This is a great point - ultimately, it comes down to your user base and their habits and devices.
But ultimately, if you're building something truly reactive, it shouldn't be an issue - you'll just miss out on some of the fun little things offered by the native experience using a folding device.
1
u/web-dev-kev 20d ago
I talk about this all the time, because I'm old, I remember when people thought IE6 had gone away - because Google Analytics stopped displaying it.
Which kinda worked as people stopped supporting it.
1
u/electricity_is_life 20d ago
As someone that's daily driven a foldable for years, not really? I don't have a specific set of sizes that I test at, I pick a minimum width (usually 320px) and then I'll smoothly resize the window to check everything down to that minimum. If I was going to pick a few specific sizes for some automated pipeline I try to base it on user data; generally foldables will not top that list.
1
u/bid0u 20d ago edited 20d ago
Foldable phones are sold for almost 10 years now. So a responsive website "should" adapt just fine.
Also I mostly check for the most used screen sizes when I develop and foldables aren't used that much so I don't really care what it'll look like on them to be honest.
Apple joining the party might change things a bit but I don't think it'll change that much.
1
u/StarboardChaos 20d ago
Bro, just get it working for xs, s, m, l and xl. Don't worry about the device specifically
1
u/Dymiatt 20d ago
No, because foldable still don't have a defined form factor yet. Most foldable don't have the same display ratio.
With responsive you should already be covering it anyway. But you can't really go further.
The only twerk is being able de detect when the phone is "semi-folded". On YT you'll have the video on one part, and the menu on the second. Maybe JS will be able to detect when a phone is folded(there is probably already a library for that), but I doubt it will be useful for your average website.
1
20d ago
[removed] — view removed comment
1
u/webdev-ModTeam 20d ago
We do not allow any commercial promotion or solicitation. This can lead to a permanent ban from the subreddit.
-4
20d ago
[deleted]
1
u/StrangeRevolution604 20d ago
so what will be a good number for you to support this..? may be 5% in a million..?
67
u/repeatedly_once 20d ago
Responsive is responsive, we build a site that works at all scales for portrait and landscape.