Re: [css-houdini-drafts] [css-typed-om] Why do CSSStyleValues created from strings serialize to the string?

In general, specified values are preserved exactly as written - if you say `el.style.color = "red"; console.log(el.style.color)`, authors expect to get back `red`, not `rgb(255, 0, 0)` or something like that.  This is intended to preserve that behavior.

I need to make the logic more explicit, tho, with a private slot holding a string or null, which is set to a string only if it's produced by a `.parse()` method or comes from a specified value.

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

Received on Monday, 12 March 2018 00:33:52 UTC