Skip to content

Commit 7c33b98

Browse files
authored
[cascade-5] Fix CSSOM example in legacy alias name (#7934)
1 parent 482289d commit 7c33b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-cascade-5/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ Property Aliasing</h3>
394394
<css>old-name</css> is a <a>legacy name alias</a> for <css>new-name</css>,
395395
<code>getComputedStyle(el).oldName</code>
396396
will return the computed style of the <code>newName</code> property,
397-
and <code>el.style.setPropertyValue("old-name", "value")</code>
397+
and <code>el.style.setProperty("old-name", "value")</code>
398398
will set the <css>new-name</css> property to <code>"value"</code>.
399399
</div>
400400

0 commit comments

Comments
 (0)