Re: [css-houdini-drafts] [css-properties-values-api] Make all the descriptors optional (#994)

I seem to recall that, for the JS syntax, there was an explicit choice to make `inherits` required, because it is unusual in JavaScript to have a missing object property treated as `true` by default. I don't entirely agree with it, but I understand the argument. I certainly agree that is unnecessarily verbose for the CSS syntax.

I also agree that `initial-value` and `syntax` should be optional (for both CSS and JS methods of registering properties), with the defaults Roma suggests.

In particular, it is very useful to support `syntax` without `initial-value`, to allow transitions/animations while also supporting fallbacks in the `var()` function for when the variable has not been set.

(This brings up another question: should be an *explicit* way to indicate that the initial value is the guaranteed-invalid value, maybe `initial-value: initial`? But at the very least, it should be possible to preserve this behavior by not setting an initial value.)

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

Received on Friday, 24 July 2020 02:05:30 UTC