-
Notifications
You must be signed in to change notification settings - Fork 707
[css-values-5] Receive comma-separated arguments in *-progress()
#10862
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
Comments
Temporary fix to serialize *-progress() nested in math functions, which serialized with comma-separated arguments (cf. w3c/csswg-drafts#10862). Test cases will come in later commits. 2427f88 introduced a change to wrap the arguments of some calculation functions in list(), which fixed serializing top-level *-progress(), but it is inconsistent with other calculation functions, so it now only applies to *-progress().
Thanks for pointing this out! I had noticed it and then forgot to follow up. I don't mind too much if mix() and progress() differ from the rest of the math functions, but those two have a very similar structure and should probably be consistent. |
I agree that mix() and the progress functions should be consistent in their syntax, since they're doing such similar things. mix() doesn't have any choice - because it's using |
Apparently I did notice, and filed this as #10489 :P Closing as a dup. |
All math and mix functions receive comma-separated arguments whereas progress functions receive keyword-separated arguments.
What is the reason for this difference? Does this makes up for the inconsistent and more verbose syntax, which is somewhat unusual for a CSS function?
Nit: since progress functions can be used in math functions, which are internally represented with a calculation tree, you can no longer assume that any operator node representing a function (assuming progress functions are represented as operators) should serialize with its values joined with
,
; this information must be preserved.The text was updated successfully, but these errors were encountered: