[css-mixins-1] Flesh out CSSFunctionRule - #11832
Conversation
CSSFunctionRule has so far ignored the existence of a prelude in the @function rule. This adds CSSOM support for the function name, return type, and parameters.
|
I presume we'd want to represent the body as well, right? As a .style/.childRules pair, like style rules do? (The rest looks good on a quick skim.) |
It's there, it's just not easily visible: we get
There is intentionally no
Like briefly discussed elsewhere, should we be using a |
Yup, an empty default and no default are definitely distinct values, and need to be represented differently in the OM. I've gone ahead and made the default |
Right, looks like we already did represent it differently: no default = no entry in the dictionary; empty default = empty CSSOMString. I take it we then prefer an explicit null entry if there is no default? |
Yeah, much better to have a consistent object shape with a null-valued property. |
CSSFunctionRule has so far ignored the existence of a prelude in the
@functionrule. This adds CSSOM support for the function name, return type, and parameters.