Skip to content

Commit 9cebf80

Browse files
committed
[css-values-4] Define computed form of various value types.
(Lost set of changes floating in my repo from 26 Sept 2018, probably from co-editing session with Birtles.)
1 parent 0632c8c commit 9cebf80

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

css-values-4/Overview.bs

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,11 @@ Integers: the <<integer>> type</h3>
10411041
</wpt>
10421042

10431043
<h4 id="combine-integers">
1044-
Combination of <<integer>></h4>
1044+
Computation and Combination of <<integer>></h4>
1045+
1046+
Unless otherwise specified,
1047+
the <a>computed value</a> of a specified <<integer>>
1048+
is the specified abstract integer.
10451049

10461050
<a>Interpolation</a> of <<integer>> is defined as
10471051
<var>V</var><sub>result</sub> =
@@ -1101,7 +1105,11 @@ Real Numbers: the <<number>> type</h3>
11011105
only literal <<number-token>>s do.
11021106

11031107
<h4 id="combine-numbers">
1104-
Combination of <<number>></h4>
1108+
Computation and Combination of <<number>></h4>
1109+
1110+
Unless otherwise specified,
1111+
the <a>computed value</a> of a specified <<number>>
1112+
is the specified abstract number.
11051113

11061114
<a>Interpolation</a> of <<number>> is defined as
11071115
<var>V</var><sub>result</sub> =
@@ -1214,7 +1222,12 @@ Percentages: the <<percentage>> type</h3>
12141222
</wpt>
12151223

12161224
<h4 id="combine-percentages">
1217-
Combination of <<percentage>></h4>
1225+
Computation and Combination of <<percentage>></h4>
1226+
1227+
Unless otherwise specified
1228+
(such as in 'font-size', which computes its <<percentage>> values to <<length>>),
1229+
the <a>computed value</a> of a percentage
1230+
is the specified percentage.
12181231

12191232
<a>Interpolation</a> of <<percentage>> is defined as
12201233
<var>V</var><sub>result</sub> =
@@ -1423,7 +1436,15 @@ Distance Units: the <<length>> type</h2>
14231436
In cases where the <a lt="used value">used</a> length cannot be supported,
14241437
user agents must approximate it in the <a lt="actual value">actual</a> value.
14251438

1426-
There are two types of length units: <a lt="relative length">relative</a> and <a lt="absolute length">absolute</a>.
1439+
There are two types of length units:
1440+
<a lt="relative length unit">relative</a> and <a lt="absolute length unit">absolute</a>.
1441+
The <a>specified value</a> of a length is
1442+
represented by its quantity and its unit.
1443+
The <a>computed value</a> of a length is
1444+
the specified length resolved to an <a>absolute length</a>,
1445+
and its unit is not distinguished:
1446+
it can be represented by any <a>absolute length unit</a>
1447+
(but will be serialized using its <a>canonical unit</a>, ''px'').
14271448

14281449
<wpt>
14291450
css/css-values/calc-unit-analysis.html
@@ -1438,7 +1459,8 @@ Distance Units: the <<length>> type</h2>
14381459
<h3 id="relative-lengths">
14391460
Relative Lengths</h3>
14401461

1441-
<dfn lt="relative length">Relative length units</dfn> specify a length relative to another length.
1462+
<dfn lt="relative length | relative length unit">Relative length units</dfn>
1463+
specify a length relative to another length.
14421464
Style sheets that use relative units can more easily scale from one output environment to another.
14431465

14441466
The relative units are:
@@ -2021,7 +2043,8 @@ The Various Viewport-relative Units</h5>
20212043
<h3 id="absolute-lengths">
20222044
Absolute Lengths: the ''cm'', ''mm'', ''Q'', ''in'', ''pt'', ''pc'', ''px'' units</h3>
20232045

2024-
The <dfn lt="absolute length">absolute length units</dfn> are fixed in relation to each other
2046+
The <dfn lt="absolute length | absolute length unit">absolute length units</dfn>
2047+
are fixed in relation to each other
20252048
and [=anchored=] to some physical measurement.
20262049
They are mainly useful when the output environment is known.
20272050
The absolute units consist of

0 commit comments

Comments
 (0)