-
Notifications
You must be signed in to change notification settings - Fork 718
[css-mixins-1] Flesh out CSSFunctionRule #11832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
@function
rule. This adds CSSOM support for the function name, return type, and parameters.