W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

Re: [csswg-drafts] [css-values] Trigonometric functions (#2331)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Mar 2019 13:13:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-468660481-1551445999-sysbot+gh@w3.org>
To avoid this kind of ambiguities like `pow(2%, 4)`, I support

> TabAtkins: Maybe go back to pow() and sqrt() only accept numbers

Then authors can choose `pow(2, 4) * 1%` to get `16%` or `pow(2/100, 4) * 100%` to get `0.000016%`.

Note this is not just about percentages, e.g. if `1in` is `96px`, then it doesn't make much sense if `pow(1in, 2)` is still `1in` or `96px`, but `pow(96px, 2)` becomes `9216px`. If values with non-empty types are accepted, the types should be multiplied.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2331#issuecomment-468660481 using your GitHub account
Received on Friday, 1 March 2019 13:13:22 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:05 UTC