W3C home > Mailing lists > Public > www-style@w3.org > June 2014

Re: Why not max/min-font-size? & extend them to other properties of sizes

From: Bruno Racineux <bruno@hexanet.net>
Date: Thu, 26 Jun 2014 23:33:09 -0700
To: Alan Gresley <alan@css-class.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, Gérard Talbot <www-style@gtalbot.org>
CC: Kseso? <kseso9@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <CFD243E5.89858%bruno@hexanet.net>

>Can you explain to me what text-zoom is?

Sorry if wasn't clear. It's the 'Zoom Text Only' browser feature under
View > Zoom
available on Safari, IE and Firefox which you can use with the zoom/+-
shortcuts. Chrome/Blink doesn't have it, except for fairly poor and
unreliable chrome extension hacks modifying the DOM on the fly after
DOMContentloaded to try and do that task.

>> Case: When you use an arbitrary text-only zoom on desktop, all fonts can
>> get bigger, completely messing up with the layout integrity of
>> pixel-perfect logos, headers, menu etc.
>Is this the failure of text-only zoom or pixel perfect layouts

It depends on your take on what 'Zoom Text Only' is for.
I would expect 'Zoom Text Only' to not scale any text set in px or pt,
falling in line with the default font size setting behavior.

'Zoom Text Only' seems mostly meant to zoom in on the "<main>" content as
opposed to every piece of text on the page. The convention being that text
set in px or pt is not altered. Either I can file a bug on 'Zoom Text
Only' to try and change how the feature works, or
'max-font-size/min-font-size' can address this at the author level.

>Have you see this setting in Chrome (it's hidden well).

Not really hidden, it's under 'Web Content'. But that one only covers the
default font. The 'Zoom Text Only' scale is applied on top of this setting.

>> For example, if I use 'body { font-size: 100% }' and all other fonts in
>> scalable percentages or ems, I can lock a specific container to a 16px
>> base even if the fonts in children elements are in %. So if the user
>>has a
>> default font size of 18px, all my fonts scale upon the user default,
>> except for particular area deemed negatively affecting the layout.
>What happens when someone has a minimum font size setting?

A minimum font size setting higher than author specified overrides all
fonts, even if set in px or pt.

>Not everyone relies on a default font-size.

Everyone does, unless changed. The Normal/Medium size is always 16px by
default for all browsers. Then a given scale along the lines of Very
Small, Small, Large etc. all map to pixel sizes in the range of

Received on Friday, 27 June 2014 06:33:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:43 UTC