W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2016

[csswg-drafts] [css-values] Radians considered useless without π

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 Jul 2016 10:30:37 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-164806579-1468233035-sysbot+gh@w3.org>
Crissov has just created a new issue for 

== [css-values] Radians considered useless without π ==
`rad` has been a valid  [angular 
unit](https://drafts.csswg.org/css-values-3/#angles) since they have 
existed in CSS, but it never has been useful or widely used. A major 
reason for this, despite popular familiarity with degrees, is most 
probably that values in radians tend to be long floats with a single 
digit before the decimal marker and hence make authors feel unable to 
express definite values that won’t be rounded in an unexpected way. 
(Many intuitively expect decimal rounding, although it’s usually 
hexadecimal/binary.) This is due to a lack of the constant π in CSS. 

Although a `turn` unit has already been defined, which equals 2π, I’d 
like to suggest another **unit for radians muliplied by π**: either 
`pirad` or just `pi`. It’s okay to defer it to the next level, 
although I believe it should already have been included in Level 2.

Length units may benefit from other irrational multipliers, e.g. √2, 
but there’s no obvious identifier comprised of only ASCII letters for 
them. We do have precedents for unit prefixes with `dp…`, `ms` and 
`kHz` (and if there was `m`, also `mm` and `cm`).

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/309 using your GitHub 
Received on Monday, 11 July 2016 10:30:44 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:00 UTC