[Webkit-unassigned] [Bug 230348] AX: Why does -apple-system-body default to 13px on macOS?

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 19 03:47:31 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=230348

--- Comment #4 from Šime Vidas <sime.vidas at gmail.com> ---
The problem is that on every other platform and browser, the default font size is 16px, so if I use em or rem units to increase the font-size for desktop Safari, it will be too big in all other browsers.

  html {
    font: -apple-system-body;
  }

  body {
    font-size: 1.2307692rem;
  }

With this code, the font-size will by default be exactly 16px in desktop Safari but 19.69px in all other browsers (including iOS Safari!). The only way to get a consistent 16px across all browsers seems to be to detect desktop Safari and add the body font-size: 1.2307692rem increase to that browser only.

Since there is no “Larger text” accessibility setting on macOS, I think it would be best if font: -apple-system-body was just ignored and didn’t result in a font-size decrease to 13px.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210919/e7f290d1/attachment.htm>


More information about the webkit-unassigned mailing list