Re: [css-houdini-drafts] [css-properties-values-api] Interaction with setProperty is unfortunate. (#880)

@tabatkins @emilio So, I now have approval to ship this feature in Blink, but I don't think that's wise until we have some minimal consensus here.

I'm feeling a little uneasy about (4), especially re. constructible stylesheets. Not sure how I feel about there being two _general_ parser "modes", where one respects registered syntax and one doesn't.

How about option (6):

* **"Validate whenever the JS API interacts with a _value_ directly"**. This means that two-param `CSS.supports` gets validation (which @emilio already suggested), but the other form doesn't (it's parsing a `<declaration>` / `<supports-condition>` -> not a value directly). `CSSStyleSheet.replace` (etc) also won't get validation. I may be damaged, but I find this less surprising than the alternative.


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

Received on Monday, 6 May 2019 11:59:34 UTC