@@ -1984,15 +1984,15 @@ are represented as {{CSSUnitValue}}s.
1984
1984
</div>
1985
1985
1986
1986
<div algorithm>
1987
- To <dfn export>create a CSSUnitValue from a pair</dfn> (|num|, |unit|),
1987
+ To <dfn export lt="create a CSSUnitValue from a pair | new unit value" >create a CSSUnitValue from a pair</dfn> (|num|, |unit|),
1988
1988
return a new {{CSSUnitValue}} object
1989
1989
with its {{CSSUnitValue/value}} internal slot
1990
1990
set to |num|,
1991
1991
and its {{CSSUnitValue/unit}} internal slot
1992
1992
set to |unit|.
1993
1993
1994
1994
<div class=example>
1995
- For example, [=create a CSSUnitValue from a pair|creating a CSSUnitValue =] from `(5, "px")`
1995
+ For example, creating a [=new unit value =] from `(5, "px")`
1996
1996
creates an object equivalent to
1997
1997
<code> new CSSUnitValue(5, "px")</code> .
1998
1998
</div>
@@ -2610,7 +2610,7 @@ This list is the object's [=values to iterate over=].
2610
2610
2611
2611
4. If |z| was not passed,
2612
2612
set |this|’s {{CSSTranslate/z}} internal slot
2613
- to [=create a CSSUnitValue from a pair| new unit value=] of `(0, "px")`,
2613
+ to a [= new unit value=] of `(0, "px")`,
2614
2614
and set |this|’s {{CSSTransformComponent/is2D}} internal slot
2615
2615
to `true`.
2616
2616
@@ -2629,9 +2629,9 @@ This list is the object's [=values to iterate over=].
2629
2629
with its {{CSSRotate/angle}} internal slot
2630
2630
set to |angle|,
2631
2631
its {{CSSRotate/x}} and {{CSSRotate/y}} internal slots
2632
- set to [=create a CSSUnitValue from a pair| new unit values=] of `(0, "number")`,
2632
+ set to [=new unit values=] of `(0, "number")`,
2633
2633
its {{CSSRotate/z}} internal slot
2634
- set to a [=create a CSSUnitValue from a pair| new unit value=] of `(1, "number")`,
2634
+ set to a [=new unit value=] of `(1, "number")`,
2635
2635
and its {{CSSTransformComponent/is2D}} internal slot set to `true`.
2636
2636
</div>
2637
2637
@@ -2686,7 +2686,7 @@ This list is the object's [=values to iterate over=].
2686
2686
2687
2687
5. If |z| was not passed,
2688
2688
set |this|’s {{CSSScale/z}} internal slot
2689
- to a [=create a CSSUnitValue from a pair| new unit value=] of `(1, "number")`,
2689
+ to a [=new unit value=] of `(1, "number")`,
2690
2690
and set |this|’s {{CSSTransformComponent/is2D}} internal slot to `true`.
2691
2691
2692
2692
6. Return |this|.
@@ -3290,7 +3290,7 @@ The {{CSSDeviceCMYK}} class represents the CSS ''device-cmyk()'' function.
3290
3290
return |num|.
3291
3291
3292
3292
2. If |num| is a {{double}} ,
3293
- return a [=create a CSSUnitValue from a pair| new unit value=] from (|num|*100, "percent").
3293
+ return a [=new unit value=] from (|num|*100, "percent").
3294
3294
</div>
3295
3295
3296
3296
0 commit comments