- From: Darren Shen via GitHub <sysbot+gh@w3.org>
- Date: Thu, 01 Mar 2018 03:15:51 +0000
- To: public-houdini-archive@w3.org
Hmm, after thinking about this a bit more and discussing with @alancutter, there are some weirdnesses (at least, for me) if we reify as separate CSSStyleValues. - In CSSOM, I think you can set something to 'var(--A), bleh'. If you reify that, you probably get a `CSSUnparsedValue(CSSVariableReference('--A'))` and a `CSSKeywordValue('bleh')`. The latter is invalid for that property. I think this breaks roundtripping, but not sure if that's bad tho. - If you do `styleMap.set(.., CSSUnparsedValue([--A, ',', --B]))`, does that `CSSUnparsedValue` get "parsed" and split into two smaller ones? And how do we make this consistent (if we want to) with `styleMap.set(..., "var(--A), var(--B)")`? - CSSOM seems to accept stuff like `var(--A),,,,what`, but does that make sense to reify as separate items? I'm not very familiar with custom properties, so there's probably a good answer for each of these cases. But I think it might be more intuitive / simpler if we reified as a single `CSSUnparsedValue`? -- GitHub Notification of comment by darrnshn Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/707#issuecomment-369461135 using your GitHub account
Received on Thursday, 1 March 2018 03:15:57 UTC