Skip to content

Commit 4f50f67

Browse files
committed
[css-fonts-4][css-values-4] Define 'font-affecting properties' and list which properties are in that category. #14306
1 parent 39fa9b8 commit 4f50f67

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ Value Definitions</h3>
9999
also accept the <a>CSS-wide keywords</a> as their property value.
100100
For readability they have not been repeated explicitly.
101101

102+
<h3 id="font-relative">
103+
Interaction With Font-Relative Units</h3>
104+
105+
The following properties defined in this specification are [=font-affecting properties=]:
106+
107+
* All longhands of the 'font' shorthand
108+
* All longhands of the 'font-synthesis' shorthand
109+
* All longhands of the 'font-variant' shorthand
110+
* 'font-language-override'
111+
* 'font-feature-settings'
112+
* 'font-variation-settings'
113+
* 'font-optical-sizing'
114+
115+
102116
<h2 id="basic-font-props">
103117
Basic Font Properties</h2>
104118

css-values-4/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,14 +2080,16 @@ Font-relative Lengths: the ''em'', ''rem'', ''ex'', ''rex'', ''cap'', ''rcap'',
20802080

20812081
</dl>
20822082

2083-
When used in the value of any 'font-*' property on the element they refer to,
2083+
Properties that affect the font size or font metrics of an element
2084+
are <dfn export lt="font-affecting property">font-affecting properties</dfn>.
2085+
When used in the value of any [=font-affecting property=] on the element they refer to,
20842086
the [=font-relative lengths=] resolve against the computed metrics of the parent element--
20852087
or against the computed metrics corresponding to the initial values
20862088
of the 'font' and 'line-height' properties,
20872089
if the element has no parent.
20882090
Similarly,
20892091
when ''lh'' or ''rlh'' units are used
2090-
in the value of the 'line-height' property or 'font-*' properties on the element they refer to,
2092+
in the value of the 'line-height' property or [=font-affecting properties=] on the element they refer to,
20912093
they resolve against the computed 'line-height' and font metrics of the parent element--
20922094
or the computed metrics corresponding to the initial values
20932095
of the 'font' and 'line-height' properties,

0 commit comments

Comments
 (0)