- From: Jonathan Neal via GitHub <sysbot+gh@w3.org>
- Date: Thu, 28 Feb 2019 22:58:02 +0000
- To: public-css-archive@w3.org
Will commas (`,`) or slashes (`/`) be used as the argument delimiter in these functions? More recently, I’ve seen slashes (`/`) used as the “official” argument delimiter — like with background and grid declarations or modern color functions — while commas have been used to separate values from fallbacks — like with `var()`. However, slashes (`/`) might be confused for division symbols in math functions. With a slash: ```css width: pow(2% / 4); /* becomes */ width: 16%; ``` With a comma: ```css width: pow(2%, 4); /* becomes */ width: 16%; ``` Neither feel especially wrong to me, but it looks a little funny when I add some inner calc. With a slash: ```css width: pow(calc(2% / 4) / 4); /* becomes */ width: 0.0625%; ``` With a comma: ```css width: pow(calc(2% / 4), 4); /* becomes */ width: 0.0625%; ``` -- GitHub Notification of comment by jonathantneal Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2331#issuecomment-468473201 using your GitHub account
Received on Thursday, 28 February 2019 22:58:03 UTC