Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define <meta name=viewport> #3494

Open
annevk opened this issue Feb 22, 2018 · 7 comments
Open

Define <meta name=viewport> #3494

annevk opened this issue Feb 22, 2018 · 7 comments

Comments

@annevk
Copy link
Member

annevk commented Feb 22, 2018

Mostly filing this since folks might look for it here, given it isn't in the HTML Standard yet. This is mostly tracked by the CSS WG, who seem to lack resources to get this done. If anyone is interested in taking this on, dive in over at w3c/csswg-drafts#331.

@clshortfuse
Copy link

@annevk Is this still the case?

I see https://drafts.csswg.org/css-viewport/#viewport-meta exists.

Allowing sites to use system font size what discussed to be part of <meta viewport>. Per a discussion about 2.5 years ago:

Resolution from the F2F was to have a an opt-in switch for the web authors to get the true user font size, even on small screen device... Ideally the opt-in could be phased out over time if/when the Web handled scalability better.
General consensus was that this should be an addition to <meta viewport>

Originally posted by @cookiecrook in w3c/csswg-drafts#3708 (comment)

I would like to continue tracking the font accessibility issue with PWA/Home Screen apps and hopefully find a resolution for Android users (Apple/Webkit has -apple-system-body).

@annevk
Copy link
Member Author

annevk commented Apr 5, 2023

I don't see "viewport" defined at https://html.spec.whatwg.org/#standard-metadata-names so this still seems like a problem, yes. (Note that it's a value of name, not its own attribute.)

(There is one mention under "speculative fetch" that should be turned into an xref as part of adding this.)

@cookiecrook
Copy link

cookiecrook commented Apr 6, 2023

@clshortfuse, WebKit/Safari resolution was not to rely on -apple-system-body... Continue reading in the same thread:

@ cookiecrook wrote:

The end solution was not the old -apple-system value, which is not widely used.

The solution was that Safari added a site-specific font size control that adjusts the font for any web text, regardless of how the author specifies the units.

Safari toolbar showing font size controls

@clshortfuse wrote:

But Android is still forced to 16px.

Any browser can add a font size controller to the UI. No additional spec work needed.

Then the relevant zoom unit is em or rem.

@clshortfuse
Copy link

clshortfuse commented Apr 6, 2023

Sorry, but I'm still confused. I understood that it's not a CSS problem, assuming that it's a viewport (HTML) issue. The Chromium team won't move forward without a spec. And there is no spec for using native system font size.

So the resolution was... don't use native system font size and instead use em rem? That doesn't really work for PWA/Home Screen apps. I'm still using -apple-system-body to this day for Home Screen Apps on iOS. Are you saying I shouldn't? Is Apple planning on dropping dynamic font? If that's the case, what is Apple's suggested solution for font-scaling with Home Screen Apps? I don't think forcing 16px font is an accessible solution.

Current WAI guidance still suggests using -apple-system-body. Is that wrong then?

@cookiecrook
Copy link

As I recall, there was an issue opened regarding Home Screen web apps, but I don't think there is a solution.

@clshortfuse
Copy link

@cookiecrook Thanks for the heads-up and I sincerely apologize for the confusion. I'm kicking myself here because I could have worked on this sooner. I'll probably investigate the Web App Manifest and see if I can gain some traction there.

I'm definitely off topic here and we can mark the comments as such.

@cookiecrook
Copy link

No apologies necessary. The other "zoom unit" thread you commented on was a more complex issue that I'm still not sure I fully understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants