Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: ANN: Dogelog: We Have Liftoff, We Have Liftoff Date: Sun, 13 Jun 2021 18:18:14 +0200 Lines: 49 Message-ID: References: <7718d23d-f8a2-4b43-9cde-f9babbc146cbn@googlegroups.com> <31bddb0c-c2d4-4fc9-b148-1d0acbbe3ac0n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net cF2fqZELcdgCRdcJ8LimtgYe2OgFQ4ddCdrC8F3vzPaJg5+tt8 Cancel-Lock: sha1:b8lf2ze9+aNzG0ESoRFq3VW8zvk= In-Reply-To: <31bddb0c-c2d4-4fc9-b148-1d0acbbe3ac0n@googlegroups.com> Xref: csiph.com comp.lang.javascript:40211 Michael Haufe (TNO): > On Wednesday, May 26, 2021 at 8:21:10 AM UTC-5, Jon Ribbens wrote: >> On 2021-05-26, Michael Haufe (TNO) wrote: >>> On Wednesday, May 26, 2021 at 1:33:27 AM UTC-5, Mostowski Collapse wrote: >>>> Hint, if you want to make websites that work >>>> on mobile and desktop, there are other >>>> approaches than just having elephant font size. >>> >>> The font size is relative to the viewport size. >> That's a pretty weird thing to do, to be fair. > > Uncommon yes, but not that weird: > > > > I think someone misunderstood the idea of viewport based units. Viewport based units are ok for the overall layout. But having *text* sized based on the viewport makes no sense at all besides any demo to show what cool tricks people found out. Also see the demo on with the "I resize." text which always fits the viewport - nobody needs this for *real* textual content except a few special use cases to display banners etc.. A font size of 1 em is *always* readable on *any* device since the browser is designed this way that "1 em" is the normal font size. So using other font sizes should only be done for a good reason, e.g. bigger fonts for headlines or using a big font to display a single short message which fills the viewport. But usually you don't use dynamic font sizes just because the size of the viewport changes. For example: Normally I don't use my desktop browser full screen since most sites don't need it and don't use a full width view port to display more information anyway. But in some cases I put the browser to full screen size to make use of it - e.g. when using an online project management tool where the additional space can be used to display more columns on the kanban board etc.. It would be totally stupid if the font then would be enlarged just because the viewport is bigger. Or in other words: when I as a user make the viewport bigger or smaller I don't want to get bigger or smaller text but more or less content. -- Arno Welzel https://arnowelzel.de