DEV Community

Discussion on: How to support Apple's dynamic type in your web content with CSS

Collapse
 
mdarrik profile image
Darrik Moberg

This is interesting. I wonder why the system font doesn't just set the browser's default font size.

Collapse
 
colingourlay profile image
Colin Gourlay

I think it’s important that the feature is opt-in, but I would have liked to be able to access the size directly, rather than the whole font shorthand. Apple created the concept of env() CSS values, which could have been great for exposing more than margins.

Collapse
 
mdarrik profile image
Darrik Moberg

So font-size is an accessibility thing. In desktop browsers, you can scale your default font-size to better suit your needs. This can be an alternative to zooming. The idea is that sites can set their base font in rem to scale to the browser defaults. If a site wants to opt out (which they probably shouldn't), they can use a fixed font size like pixels.
Having to hack around this to scale your fonts a special way for Apple seems odd to me.
Either way, this is great information!