4 ms·
What about giving websites and web apps the ability to detect the font size preference of the user to automatically adjust the font size? Just like native apps
by agust 4y ago
What about giving websites and web apps the ability to detect the font size preference of the user to automatically adjust the font size?
Just like native apps do...?
- detaro 4y agoWebsites have that ability, both in CSS with types that are defined relative to the users set font size, and to detect it in JS. The platforms capability is not the problem here.
- agust 4y agoHmm really? How do you do that? The `rem` and `em` CSS units do not reflect iOS font-size settings if this is what you mean (I don't know about Android).
- rascul 4y ago1 rem is supposed to be the font size of the root element. 1 em is the font size of the parent. If a browser isn't implementing those in such a manner then it seems like it would be a bug. https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_...
- detaro 4y agoDoes Safari not have a UI for the user to set a font-size preference? Most browser do.
- extra88 4y agoIt's true that mobile Safari seems to lack a setting for default font size or what Mac Safari has, a minimum font size setting. It does have a default Page Zoom setting and it will remember Page Zoom changes per-domain (e.g. I have this site set to 115%). There is a way for web sites to make use of iOS's Dynamic Type setting [0] to make text larger, but it's up to each site's author to include the requisite values in their CSS. [0] https://www.interactiveaccessibility.com/blog/text-resizing-web-pages-ios-using-dynamic-type https://www.interactiveaccessibility.com/blog/text-resizing-...
- bornfreddy 4y agoThis. HTML was actually created to be accessible by default. One needs to make an effort (unfortunately not very big effort) to break it.
- silon42 4y agoEven native apps are often broken when you enable "large fonts". I've used large fonts since forever and even now are using 1440p on 32" screen (I'm not wearing glasses or anything).
- lupire 4y agoWhat do you mean? Browsers are native apps, so they already do that for websites.