[css-houdini-drafts] [css-typed-om]What actually happens when sets happen on a StylePropertyMap?

bzbarsky has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om]What actually happens when sets happen on a StylePropertyMap? ==
Let's consider a specific example.  Say I have:

    <body style="color: red">

and I do:

    document.body.attributeStyleMap.set("color", new CSSKeywordValue("green"));

After that, what does `document.body.getAttribute("style")` return?  What does `document.body.style.color` return?  Why?

The spec for https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set says that the set happens in the `StylePropertyMap`, but says nothing about modifying the relevant `CSSStyleDeclaration` or anything else.  Should it?

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/719 using your GitHub account

Received on Friday, 2 March 2018 16:07:38 UTC