pub fn dom_style_set_property(
it: &mut Interp,
this: Value,
a: &[Value],
) -> Result<Value, Value>Expand description
this(Host(“classList:N”) など)から prefix を剥がして index を取り出す。
element.style.setProperty(name, value)/getPropertyValue(name)/removeProperty(name)
が丸ごと欠落していた(直接のプロパティ代入 el.style.color = 'red' と、
getComputedStyle().getPropertyValue() はあったが、インラインスタイルの
メソッド経由の読み書きが無かった)。特に CSS カスタムプロパティ(--foo)は
camelCase のプロパティアクセサ経由では設定できないため、setProperty の欠落は
カスタムプロパティを使う実用コードで特に影響が大きかった。