Skip to content

Commit a9fdc95

Browse files
committed
[typed-om] Rename 'normalize a style value' to 'create an underlying value', and fix some linking errors.
1 parent a256ccd commit a9fdc95

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

css-typed-om/Overview.bs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ spec:css21; type:property;
4747
text:max-width;
4848
text:min-height;
4949
text:min-width;
50-
spec:cssom;
50+
spec:cssom-1;
5151
type: dfn;
5252
text: resolved value
5353
text: origin-clean flag; for: CSSStyleSheet
54+
text: CSS declaration block
55+
text: declarations; for: CSSStyleDeclaration
5456
spec:css-align-3; type:property; text:column-gap
5557
spec:css-color-3; type:property; text:color;
5658
spec:css-position-3; type:value; for:left; text:auto;
@@ -298,9 +300,9 @@ interface StylePropertyMap : StylePropertyMapReadOnly {
298300
};
299301
</xmp>
300302

301-
{{StylePropertyMap}} is an alternate way to represent a [=CSS declarations block=] as an object
303+
{{StylePropertyMap}} is an alternate way to represent a [=CSS declaration block=] as an object
302304
(when fetched via the [[cssom]],
303-
[=CSS declaration blocks=] are instead represented as {{CSSStyleDeclarations}} objects.)
305+
[=CSS declaration blocks=] are instead represented as {{CSSStyleDeclaration}} objects.)
304306

305307
<!--
306308
We restrict the read-write version from workers/worklets
@@ -350,7 +352,7 @@ interface StylePropertyMap : StylePropertyMapReadOnly {
350352
2. Let |value pairs| be an empty [=list=].
351353

352354
3. [=map/For each=] |prop| → |value| in |declarations|:
353-
1. Let |iterations| be the result of [=dividing into iterations=] |value|.
355+
1. Let |iterations| be the result of [=subdivide into iterations|dividing into iterations=] |value|.
354356
2. [=Reify=] each [=list/item=] of |iterations|,
355357
and let |objects| be the result.
356358
3. Append |prop|/|objects| to |value pairs|.
@@ -485,7 +487,7 @@ probably in an appendix.
485487
7. Let |values to set| be an empty [=list=].
486488

487489
8. For each |value| in |values|,
488-
[=normalize a style value=] for |property| and |value|,
490+
[=create an underlying value=] for |property| and |value|,
489491
and append the result to |values to set|.
490492

491493
9. Set |props|[|property|] to |values to set|.
@@ -523,7 +525,7 @@ probably in an appendix.
523525
7. Let |temp values| be an empty [=list=].
524526

525527
8. For each |value| in |values|,
526-
[=normalize a style value=] with |property| and |value|,
528+
[=create an underlying value=] with |property| and |value|,
527529
and [=list/append=] the returned value to |temp values|.
528530

529531
<!-- Using a temp list so that nothing gets mutated if normalizing ends up throwing an error. -->
@@ -555,11 +557,15 @@ probably in an appendix.
555557
</div>
556558

557559
<div algorithm>
558-
To <dfn export>normalize a style value</dfn>,
560+
To <dfn export>create an underlying value</dfn>,
559561
given a [=string=] |property|
560562
and a [=string=] or {{CSSStyleValue}} |value|:
561563

562-
: If |value| is a {{CSSStyleValue}},
564+
: If |value| is a direct {{CSSStyleValue}},
565+
::
566+
Return |value|'s associated value.
567+
568+
: If |value| is a {{CSSStyleValue}} subclass,
563569
:: If |value| does not [=match a CSS production|match the grammar=] of a [=list-valued property iteration=] of |property|,
564570
[=throw=] a {{TypeError}}.
565571

@@ -568,12 +574,6 @@ probably in an appendix.
568574
replace that value with the result of wrapping it in a fresh {{CSSMathSum}}
569575
whose {{CSSMathSum/values}} internal slot contains only that part of |value|.
570576

571-
(If |value| is a direct instance of {{CSSStyleValue}},
572-
rather than one of its subclasses,
573-
do the same with the abstract representation of the property's value that |value| contains,
574-
replacing any out-of-range number, percentage, or dimension components
575-
by wrapping them in a ''calc()'' expression.)
576-
577577
Return the |value|.
578578

579579
: If |value| is a {{USVString}},

0 commit comments

Comments
 (0)