CSSのfont-sizeの絶対寸法
CSS 2.1以降のfont-sizeの絶対寸法はHTMLのFONT要素のSIZE属性と対応しており、Webブラウザーのフォント・サイズ設定からの比率で表示される大きさが決定される。その対応一覧は以下の通り。
CSS absolute-size values | xx-small | x-small | small | medium | large | x-large | xx-large | |
---|---|---|---|---|---|---|---|---|
scaling factor | 3/5 (60.0%) |
3/4 (75.0%) |
8/9 (88.9%) |
1 (100.0%) |
6/5 (120.0%) |
3/2 (150.0%) |
2/1 (200.0%) |
3/1 (300.0%) |
HTML headings | h6 | h5 | h4 | h3 | h2 | h1 | ||
HTML font sizes | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
参考:CSS Fonts Module Level 3 — 3.5. Font size: the font-size property
https://www.w3.org/TR/css-fonts-3/#font-size-prop