Re: [css-houdini-drafts] [css-typed-om] How does Typed OM interact with existing setters on CSSStyleDeclaration?

> But style maps are live, so the second get() returns a CSSKeywordValue("green").

"style maps are live" is not really enough to pin down behavior here.  The question is whether setting .style.color creates a new CSSKeywordValue or mutates the existing one.

> z itself isn't retained

That's the part that needs to be specced somewhere.

> Why does the StylePropertyMap need to not be changed?

If I do `map.set("color", foo)`, shouldn't I then have `map.get("color") === foo`?

> No, every call to get() reifies a fresh object.

It does?  So if I do `map.get("color") === map.get("color")` I should get false?  That's not what the spec text at https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-get says.

-- 
GitHub Notification of comment by bzbarsky
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/723#issuecomment-370047465 using your GitHub account

Received on Friday, 2 March 2018 20:46:02 UTC