[css-fonts-4] Clarify how the computed font-size is determined for size keyword
Open
@FremyCompany is already working on this.
Since Mar 14, 2024.
css-fonts-4
Needs Edits
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.