W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

Re: [csswg-drafts] [css-fonts-5] Dynamic text size (#3708)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Tue, 05 Mar 2019 21:56:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-469873854-1551823012-sysbot+gh@w3.org>
What do you expect to be added to CSS?

This isn't really a new problem.  Historically, most browsers allowed users to set preferred font-sizes; Chrome and Firefox still do.  All that is changing is that the setting has moved from the browser to the operating system.

Wherever the user preference is set, it _should_ be reflected by the browser in the default font size for the page (and the definitions of the font-size keywords like `medium`, as discussed in https://github.com/w3c/csswg-drafts/issues/2430).

Ideally, web page content authors would work with that user preference, using `medium` font (or `1rem` assuming that they never mess with the root font size) for normal body text, and relative adjustments from that value for fancy fonts, headings, small text, and so on.

But web page authors, as a whole, have historically been very bad at reflecting user's preferred font sizes…

As you mention, simply overriding the font size set by the web page styles can result in broken layout and overlapping text, which is why most browsers don't override absolute font sizes.  But at least some browsers (Firefox and Chrome) currently support a "minimum font size".  There's no reason they couldn't adjust that automatically based on an OS-set ideal font size, if the user hadn't set a different value in the browser.

The only option that would avoid potential clashes with author styles would be for a browser to be smart about setting the overall px-zoom level for a page to effectively scale up/down body text to within a certain percentage of the preferred size.  But I'm skeptical about whether this type of smarts could really be implemented correctly and efficiently, given the wide variety of font styles and effective sizes for a given em-size.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3708#issuecomment-469873854 using your GitHub account
Received on Tuesday, 5 March 2019 21:56:55 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:45 UTC