@@ -1962,10 +1962,10 @@ The {{CSSPositionValue/x}} attribute expresses the offset from the left edge of
1962
1962
let map = document.querySelector('.example' ).styleMap;
1963
1963
1964
1964
map.get('background-position' ).x;
1965
- // CSSUnitValue (50, "percent" )
1965
+ // CSS.percent (50)
1966
1966
1967
1967
map.get('background-position' ).y;
1968
- // CSSCalcValue({ percent: 100, px: -10} )
1968
+ // CSSMathSum(CSS. percent( 100), CSS.px( -10) )
1969
1969
</pre>
1970
1970
</div>
1971
1971
@@ -2198,7 +2198,7 @@ CSS [=identifiers=] become {{CSSKeywordValue}}s in the Typed OM.
2198
2198
<<number>> , <<percentage>> , and <<dimension>> values {#normalize-numeric}
2199
2199
-------------------------------------------------------------------------
2200
2200
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.
2202
2202
2203
2203
<div algorithm>
2204
2204
To <dfn export>normalize a numeric value</dfn> |num|:
@@ -2569,12 +2569,12 @@ Otherwise,
2569
2569
to the string representation of their {{CSSUnitValue/value}}
2570
2570
followed by their {{CSSUnitValue/unit}} .
2571
2571
2572
- {{CSSCalcValue }} Serialization {#calc-serialization}
2572
+ {{CSSMathValue }} Serialization {#calc-serialization}
2573
2573
---------------------------------------------------------
2574
2574
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
2578
2578
2579
2579
{{CSSTransformValue}} Serialization {#transformvalue-serialization}
2580
2580
-------------------------------------------------------------------
@@ -2705,21 +2705,12 @@ During computation, {{CSSUnitValue}} objects
2705
2705
are range-restricted or rounded as appropriate to the relevant property,
2706
2706
but otherwise as specified.
2707
2707
2708
- Computed {{CSSCalcValue }} objects {#computed-calc-objects}
2708
+ Computed {{CSSMathValue }} objects {#computed-calc-objects}
2709
2709
-----------------------------------------------------------------
2710
2710
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
2723
2714
2724
2715
Computed {{CSSTransformValue}} objects {#computed-transformvalue-objects}
2725
2716
-------------------------------------------------------------------------
0 commit comments