Re: [csswg-drafts] [css-fonts] UAs inconsistent in how OS font settings affect the default font-size `medium` (#10674)

> fyi there's a discussion in the past #3708

Thank you, that's really helpful. I've read through the thread, and I see there was a conclusion to solve the problem with a meta tag, but then the discussion was closed after this comment from @cookiecrook.

> Closing the loop on this. Since the discussions last Fall, iOS Safari has shipped a per-site font size setting, so my understanding is that we no longer need an author opt-in.

However, we can't utilise the setting in Web Views. In web pages that will only be used in Web Views inside native apps, there is no way to toggle the page to respecting the iOS-wide 'dynamic type' font setting. I imagine the situation is the same with PWAs.

And what about other platforms? As they evolve, the settings around how the default font size is established may change in the future. I think we need to clearly define how the default font size should be established in the spec. I don't think the issue is resolved in #3708.

This counterargument was also given:

> I don’t think that’s a CSS problem. Any browser (including a PWA wrapper web view) can add a font size controller.

I disagree. Let me give the use-case of the BBC News and Sport apps.

Most article and video pages in the apps can be rendered natively, and therefore use the OS font scale setting. However, there are some articles that include content that we can't render in the app, so we embed the web page version inside (but remove the website navigation and footer so that it still looks like a native app page).

On those embedded web pages in a Web View, we're not going to give them a font size controller. Why should they need to do that? They've already expressed their font size preference in the OS settings. Why can't we respect that?

-- 
GitHub Notification of comment by JoshTumath
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10674#issuecomment-2266646896 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 3 August 2024 09:03:34 UTC