[csswg-drafts] [css-fonts] Clarify how the computed font-size is determined for size keyword (#3906)

fred-wang has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts] Clarify how the computed font-size is determined for size keyword ==
cc @emilio @rwlbuis @bkardell @bfgeek 

Spec: https://drafts.csswg.org/css-fonts-4/#font-size-prop

For example Emilio gave me this example:

      <div style="font-family: serif">Serif <div style="font-family: monospace">mono</div></div>

The first div has size 16px and the second 13px in all browsers. font-size on them is the default "medium" value. Compare with:

      <div style="font-size: 16px"><div style="font-family: serif">Serif <div style="font-family: monospace">mono</div></div></div>

Currently, the spec suggests some scale factors but maybe it should make clear that the computed font-size is determined from the computed font-family, lang, user preferences etc

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3906 using your GitHub account

Received on Friday, 10 May 2019 04:38:07 UTC