Skip to content

Commit ffd3abb

Browse files
committed
Remove lingering references to CSSCalcValue.
1 parent bcc5d15 commit ffd3abb

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

css-typed-om/Overview.bs

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,10 +1962,10 @@ The {{CSSPositionValue/x}} attribute expresses the offset from the left edge of
19621962
let map = document.querySelector('.example').styleMap;
19631963

19641964
map.get('background-position').x;
1965-
// CSSUnitValue(50, "percent")
1965+
// CSS.percent(50)
19661966

19671967
map.get('background-position').y;
1968-
// CSSCalcValue({percent: 100, px: -10})
1968+
// CSSMathSum(CSS.percent(100), CSS.px(-10))
19691969
</pre>
19701970
</div>
19711971

@@ -2198,7 +2198,7 @@ CSS [=identifiers=] become {{CSSKeywordValue}}s in the Typed OM.
21982198
<<number>>, <<percentage>>, and <<dimension>> values {#normalize-numeric}
21992199
-------------------------------------------------------------------------
22002200

2201-
CSS <<number>>, <<percentage>>, and <<dimension>> values become {{CSSUnitValue}}s or {{CSSCalcValue}}s in the Typed OM.
2201+
CSS <<number>>, <<percentage>>, and <<dimension>> values become {{CSSNumericValue}}s in the Typed OM.
22022202

22032203
<div algorithm>
22042204
To <dfn export>normalize a numeric value</dfn> |num|:
@@ -2569,12 +2569,12 @@ Otherwise,
25692569
to the string representation of their {{CSSUnitValue/value}}
25702570
followed by their {{CSSUnitValue/unit}}.
25712571

2572-
{{CSSCalcValue}} Serialization {#calc-serialization}
2572+
{{CSSMathValue}} Serialization {#calc-serialization}
25732573
---------------------------------------------------------
25742574

2575-
{{CSSCalcValue}} objects are serialized into a ''calc()'' expression,
2576-
per the rules in [[css-values-3#calc-serialize]],
2577-
treating the object as a summation of all the non-`null` values it contains.
2575+
{{CSSMathValue}} objects are serialized into a ''calc()'' expression
2576+
2577+
Issue: TODO
25782578

25792579
{{CSSTransformValue}} Serialization {#transformvalue-serialization}
25802580
-------------------------------------------------------------------
@@ -2705,21 +2705,12 @@ During computation, {{CSSUnitValue}} objects
27052705
are range-restricted or rounded as appropriate to the relevant property,
27062706
but otherwise as specified.
27072707

2708-
Computed {{CSSCalcValue}} objects {#computed-calc-objects}
2708+
Computed {{CSSMathValue}} objects {#computed-calc-objects}
27092709
-----------------------------------------------------------------
27102710

2711-
During computation, {{CSSCalcValue}} objects are reduced accordingly:
2712-
2713-
1. All non-`number`, non-`percent` values are absolutized
2714-
into the [=canonical unit=] for the object's associated type.
2715-
2. If the objects contains exactly one of (the canonical unit, a percent value, a number)
2716-
with a present, non-zero value,
2717-
then the computed value is an equivalent computed {{CSSUnitValue}}.
2718-
3. Otherwise,
2719-
it's a {{CSSCalcValue}}
2720-
containing the canonical unit, percent value, and number,
2721-
if those are present and non-zero,
2722-
and all other fields are `null`.
2711+
During computation, {{CSSMathValue}} objects are reduced accordingly:
2712+
2713+
Issue: TODO
27232714

27242715
Computed {{CSSTransformValue}} objects {#computed-transformvalue-objects}
27252716
-------------------------------------------------------------------------

0 commit comments

Comments
 (0)