Skip to content

Commit 0cd052c

Browse files
committed
[css-typed-om] Switch term from 'underlying value' to 'internal representation', as Web Animations already uses 'underlying value' for something different.
1 parent 6099974 commit 0cd052c

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

css-typed-om/Overview.bs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -123,24 +123,24 @@ Introduction {#intro}
123123
=====================
124124

125125
CSS stylesheets are parsed into abstract UA-internal data structures,
126-
the <dfn for=CSS export>underlying values</dfn> of CSS,
126+
the <dfn for=CSS export lt="internal representation">internal representations</dfn> of CSS,
127127
which various specification algorithms manipulate.
128128

129-
Underlying values can't be directly manipulated,
129+
[=Internal representations=] can't be directly manipulated,
130130
as they are implementation-dependent;
131-
UAs have to agree on how to *interpret* the underlying values,
132-
but the values themselves are purposely left undefined
131+
UAs have to agree on how to *interpret* the [=internal representations=],
132+
but the representations themselves are purposely left undefined
133133
so that UAs can store and manipulate CSS
134134
in whatever way is most efficient for them.
135135

136-
Previously, the only way to read or write to the underlying values
136+
Previously, the only way to read or write to the [=internal representations=]
137137
was via strings--
138138
stylesheets or the CSSOM allowed authors to send strings to the UA,
139-
which were parsed into underlying values,
139+
which were parsed into [=internal representations=],
140140
and the CSSOM allowed authors to request
141-
that the UA serialize their underlying values back into strings.
141+
that the UA serialize their [=internal representations=] back into strings.
142142

143-
This specification introduces a new way to interact with [=underlying values=],
143+
This specification introduces a new way to interact with [=internal representations=],
144144
by representing them with specialized JS objects
145145
that can be manipulated and understood more easily and more reliably
146146
than string parsing/concatenation.
@@ -149,7 +149,7 @@ This new approach is both easier for authors
149149
and have unit-aware mathematical operations defined for them)
150150
and in many cases are more performant,
151151
as values can be directly manipulated
152-
and then cheaply translated back into [=underlying values=]
152+
and then cheaply translated back into [=internal representations=]
153153
without having to build and then parse strings of CSS.
154154

155155
<!--
@@ -270,11 +270,11 @@ are instead represented as {{CSSStyleValue}} objects.
270270

271271
Each {{CSSStyleValue}} object is associated with a particular CSS property,
272272
via its {{[[associatedProperty]]}} internal slot,
273-
and a particular, immutable, [=underlying value=].
274-
These objects are said to "represent" the particular [=underlying value=]
273+
and a particular, immutable, [=internal representation=].
274+
These objects are said to "represent" the particular [=internal representation=]
275275
they were [=reified=] from,
276276
such that if they are set back into a stylesheet for the same property,
277-
they reproduce an equivalent [=underlying value=].
277+
they reproduce an equivalent [=internal representation=].
278278

279279
These {{CSSStyleValue}} objects are only considered valid for the property that they were parsed for.
280280
This is enforced by {{CSSStyleValue}} objects having a <dfn attribute for=CSSStyleValue>\[[associatedProperty]]</dfn> internal slot,
@@ -339,7 +339,7 @@ interface StylePropertyMap : StylePropertyMapReadOnly {
339339
Note: The [=CSSStyleDeclaration/declarations=] are not yet defined using [[infra]] terminology,
340340
but for the purpose of this spec
341341
it's assumed to be a [=map=] whose keys are [=strings=] (representing property names)
342-
and whose values are [=underlying values=] for those properties.
342+
and whose values are [=internal representations=] for those properties.
343343

344344
Unless otherwise stated,
345345
the initial ordering of the {{[[declarations]]}} internal slot
@@ -515,7 +515,7 @@ probably in an appendix.
515515
7. Let |values to set| be an empty [=list=].
516516

517517
8. For each |value| in |values|,
518-
[=create an underlying value=] for |property| and |value|,
518+
[=create an internal representation=] for |property| and |value|,
519519
and append the result to |values to set|.
520520

521521
9. Set |props|[|property|] to |values to set|.
@@ -566,7 +566,7 @@ probably in an appendix.
566566
7. Let |temp values| be an empty [=list=].
567567

568568
8. For each |value| in |values|,
569-
[=create an underlying value=] with |property| and |value|,
569+
[=create an internal representation=] with |property| and |value|,
570570
and [=list/append=] the returned value to |temp values|.
571571

572572
<!-- Using a temp list so that nothing gets mutated if normalizing ends up throwing an error. -->
@@ -598,7 +598,7 @@ probably in an appendix.
598598
</div>
599599

600600
<div algorithm>
601-
To <dfn export>create an underlying value</dfn>,
601+
To <dfn export>create an internal representation</dfn>,
602602
given a [=string=] |property|
603603
and a [=string=] or {{CSSStyleValue}} |value|:
604604

@@ -2845,17 +2845,17 @@ has the same behavior as in normal CSS.
28452845
{{CSSStyleValue}} Reification {#reify-stylevalue}
28462846
===========================================================
28472847

2848-
This section describes how Typed OM objects are constructed from [=underlying values=],
2848+
This section describes how Typed OM objects are constructed from [=internal representations=],
28492849
a process called <dfn export for=CSS lt="reify | reification">reification</dfn>.
28502850

28512851
Some general principles apply to all [=reification=],
28522852
and so aren't stated in each individual instance:
28532853

2854-
* If an [=underlying value=] is from a [=list-valued=] property,
2854+
* If an [=internal representation=] is from a [=list-valued=] property,
28552855
this list defines how to reify a single iteration of the property;
28562856
multiple iterations are reflected by returning multiple values from {{StylePropertyMap}}.{{getAll()}}.
28572857

2858-
* If an [=underlying value=] contains a ''var()'' reference,
2858+
* If an [=internal representation=] contains a ''var()'' reference,
28592859
then it is reified by [=reify a list of component values|reifying a list of component values=],
28602860
regardless of what property it is for.
28612861

@@ -4615,7 +4615,7 @@ for both specified and computed values.
46154615
Unrepresentable Values {#reify-failure}
46164616
---------------------------------------
46174617

4618-
Not all [=underlying values=] are simple enough to be [=reified=]
4618+
Not all [=internal representations=] are simple enough to be [=reified=]
46194619
with the current set of {{CSSStyleValue}} subclasses.
46204620
When this is the case,
46214621
the property is [=reified as a CSSStyleValue=] for a particular property,

0 commit comments

Comments
 (0)