W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2019

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

From: Frédéric Wang via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 May 2019 04:38:06 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-442535098-1557463084-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:48 UTC