Skip to content

Commit e37f0e5

Browse files
committed
[css-typed-om] Add some explanatory text about the makeup of a 'type'.
1 parent 797483a commit e37f0e5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

css-typed-om/Overview.bs

+10-2
Original file line numberDiff line numberDiff line change
@@ -1700,8 +1700,16 @@ rather than on {{CSSNumericValue}} instances.
17001700
### Numeric Value Typing ### {#numeric-typing}
17011701

17021702
Each {{CSSNumericValue}} has an associated <dfn export for=CSSNumericValue>type</dfn>,
1703-
which is a [=ordered map|map=] of [=base types=] to integers,
1704-
and an associated [=percent hint=].
1703+
which is a [=ordered map|map=] of [=base types=] to integers
1704+
(denoting the exponent of each type,
1705+
so a <<length>><sup>2</sup>,
1706+
such as from ''calc(1px * 1em)'',
1707+
is «[ "length" → 2 ]»),
1708+
and an associated [=percent hint=]
1709+
(indicating that the type actually holds a percentage,
1710+
but that percentage will eventually resolve to the hinted [=base type=],
1711+
and so has been replaced with it in the type).
1712+
17051713
The <dfn export for=CSSNumericValue lt="base type">base types</dfn> are
17061714
"length",
17071715
"angle",

0 commit comments

Comments
 (0)