Skip to content

Commit 2f214c1

Browse files
authored
[css-fonts-4] Create proper types for <absolute-size> and <relative-size> (w3c#13321)
Both `<absolute-size>` and `<relative-size>` were defined as values for `font-size`, but that made Bikeshed link the terms to the underlying type definitions in CSS2. That's confusing for readers following links because the definition of `<absolute-size>` in CSS2 does not have `xxx-large`. That also confuses other spec processing tools, see w3c/webref#1794 This update turns the value definitions into proper type definitions, which will override those defined in CSS2, and make links to `<absolute-size>` and `<relative-size>` target the local definitions.
1 parent aebe7b9 commit 2f214c1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,8 +1384,8 @@ Font size: the 'font-size' property</h3>
13841384

13851385
Values have the following meanings:
13861386

1387-
<dl dfn-for=font-size dfn-type=value>
1388-
<dt><dfn><<absolute-size>></dfn>
1387+
<dl>
1388+
<dt><dfn type><<absolute-size>></dfn>
13891389
<dd>
13901390
An <<absolute-size>> keyword refers to an entry in a table of font sizes
13911391
computed and kept by the user agent.
@@ -1395,7 +1395,7 @@ Font size: the 'font-size' property</h3>
13951395

13961396
<pre class=prod>[ xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large ]</pre>
13971397

1398-
<dt><dfn><<relative-size>></dfn>
1398+
<dt><dfn type><<relative-size>></dfn>
13991399
<dd>
14001400
A <<relative-size>> keyword is interpreted
14011401
relative to the computed 'font-size' of the parent element
@@ -1422,7 +1422,7 @@ Font size: the 'font-size' property</h3>
14221422
In addition, a user agent may choose to use different ratios
14231423
when it detects paragraph text as opposed to title text.
14241424

1425-
<dt><dfn><<length-percentage [0,∞]>></dfn>
1425+
<dt><dfn value for=font-size><<length-percentage [0,∞]>></dfn>
14261426
<dd>
14271427
A length value specifies an absolute font size
14281428
(independent of the user agent's font table).
@@ -1435,7 +1435,7 @@ Font size: the 'font-size' property</h3>
14351435
Note: Use of percentage values or <a>font-relative lengths</a>
14361436
such as ''em''s and ''rem''s
14371437
leads to more robust and cascadable style sheets.
1438-
<dt><dfn>math</dfn></dt>
1438+
<dt><dfn value for=font-size>math</dfn></dt>
14391439
<dd>
14401440
Special <a href="https://w3c.github.io/mathml-core/#the-math-script-level-property">
14411441
mathematical scaling rules</a> must be applied

0 commit comments

Comments
 (0)