title: For Accessibility: How to achieve a consistent and scalable font size across browsers?
body: <h1>Goal</h1>
  <p>My goal is to make our WebApp more accessible to dynamic font sizes. Especially for accessibility reasons, where people set bigger font sizes.</p>
  <h1>Context / Progress so far:</h1>
  <p>The WebApp is used on desktop and within our native Apps as a WebView. Our target audience uses mainly:</p>
  <ul>
  <li>Safari desktop browser</li>
  <li>Chrome desktop browser</li>
  <li>Safari on mobile devices (iOS) as a WebView</li>
  <li>Chrome on mobile devices (Android) as a WebView</li>
  </ul>
  <p>So far I found out, that the 'normal' way to do this, is by setting <code>font-size: 100%</code> on root/html level and then reference it via <code>rem</code> (or through <code>em</code> but that sounds a bit hard to maintain on a multi level architecture).</p>
  <p>The problem is, that this does not work for the Safari WebView case. Here it seems necessary to read a special variable, which I found on this Thread: <a href="https://stackoverflow.com/questions/42955105/how-to-get-the-accessibility-font-size-for-ios-and-android-in-xamarin-forms-so-i">How to get the accessibility font size for iOS and Android in Xamarin.Forms so I can change font-size in a HTML WebView?</a></p>
  <p>Now it really starts to get interesting, because using this value gives different values depending on is it Safari Desktop or Safari WebView, while Chrome of course does not know this value and uses its 'normal' 100% value. Here is a list of what I debugged, using normal font sizes:</p>
  <ul>
  <li>Chrome: <code>16px</code></li>
  <li>Safari Desktop: <code>13px</code> (with <code>-apple-system-body</code>)</li>
  <li>Safari WebView: <code>17px</code> (with <code>-apple-system-body</code>)</li>
  </ul>
  <h2>The Problem</h2>
  <p>My goal is to have one consistent UI across the browsers, so if I would just use those values combined with <code>rem</code> I would get a way smaller text size on Safari than on Chrome for example.</p>
  <h1>My main question is:</h1>
  <p>Is there a more elegant way to solve the dynamic font size issue, while keeping a consistent UI across browsers? Or is there an elegant CSS / LESS solution towards unifying the above values to one value, while keeping it reactive to system font settings?</p>
  <h2>Not desired solution:</h2>
  <p>The only solutions I can think of, would be reading out those values with javascript, detecting the browser, normalising it accordingly and setting it back. But I would like to avoid that solution, because it seems quite unstable to me, especially if maybe at some point Apple updates Safari to use different standard font sizes.</p>