Skip to content

Commit ad7644f

Browse files
nainartabatkins
authored andcommitted
Remove references to CSSNumericValue.from() in the spec (w3c#480)
* CSS.px creates a CSSNumericValue * Dont preserve source fomatting
1 parent 1ace7b2 commit ad7644f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-typed-om/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2761,10 +2761,10 @@ The way that a {{CSSStyleValue}} serializes is dependent on how the value was co
27612761
For example:
27622762

27632763
<pre class='lang-javascript'>
2764-
var length1 = CSSNumericValue.from("42.0px");
2764+
var length1 = CSSNumericValue.parse("42.0px");
27652765
length1.toString(); // "42.0px"
27662766

2767-
var length2 = CSSNumericValue.from(42.0, "px");
2767+
var length2 = CSS.px(42.0);
27682768
length2.toString(); // "42px";
27692769

27702770
element.style.width = "42.0px";

0 commit comments

Comments
 (0)