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

>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).
>chrome://settings/fonts

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
[8,12,13,18,20,23,24,28,32]

-Bruno

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