- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Tue, 26 Sep 2017 02:52:28 +0000
- To: public-css-archive@w3.org
Registering a vote for the `constant(pi)` notation, or `env(pi)` based on the resolution to https://github.com/w3c/csswg-drafts/issues/1693#issuecomment-330909067. Pi isn't an angle unit, it's a numerical constant. The angle unit is `rad`. Yes, serious mathematics doesn't use a unit for radians at all (in dimensional analysis, a radian is an angle measured as the ratio between the length of the arc and the length of the radius, so the units cancel out and you're left with a pure number). But CSS has a `rad` unit, and distinguishes between angles and numbers everywhere. So let's stick with that. I don't mind the idea of a simple constant `pi` keyword within `calc()`. But since (I think) there is now agreement on having a function for accessing system constants, might as well use it. PS, I'd love to have other math constants, like e or especially √2 available in CSS for Shapes and Transforms and so on. All the [JavaScript `Math` constants](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math). -- GitHub Notification of comment by AmeliaBR Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/309#issuecomment-332071330 using your GitHub account
Received on Tuesday, 26 September 2017 02:52:20 UTC