Re: [csswg-drafts] [css-fonts] font-size: 'medium' value is the user's preferred font size

> I think there are 4 ways. em unit is one way.

Ah, of course. I have edited my previous post to include that in with percentages, as it works the same, and has the same drawbacks (gets compounded by inheritance).

> That is possible (I have not checked this)

I [just checked](https://codepen.io/AmeliaBR/pen/erzodv?editors=1010). With the preferred font size of `medium` = `16px`, Chrome, Firefox, and WebKit all use 10/13/16/18/24px for `x-small`, `small`, `medium`, `large`, `x-large`. Edge and IE use almost the same, but allow decimal sizes: 10.06/13.33/16/18.06/24px.  So, that is fairly consistent currently, even if it is not explicitly spec'd anywhere. As you noted, there is discrepancy for the `larger`/`smaller` keywords, but Firefox, Chrome & WebKit seem to have converged on the same 1.2 factor; but this also means that only IE/Edge have it coded so that `large` is equal to one size `larger` than `medium`.

But anyway: all that just goes to confirm that the keywords are not `absolute` in pixel measurements, but relative to the browser defaults, with `medium` as the overall default font-size, which some browsers allow the user to customize.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2430#issuecomment-384448564 using your GitHub account

Received on Wednesday, 25 April 2018 22:04:06 UTC