Currently, we do not inherit the unit (deg/rad/etc) when multiplying an angle by a scalar, it is just set as degrees. WPT test: https://wpt.fyi/results/css/css-values/calc-infinity-nan-serialize-angle.html Example from test (uses NaN but : `rotate(calc(1rad * NaN))` -> `rotate(calc(NaN * 1rad))` (`1rad` inherited, not `1deg`) (There are no dedicated WPT tests for this afaik, maybe some should be added?)
Bug 1820414 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Currently, we do not inherit the unit (deg/rad/etc) when doing any angle calculations, it is just set as degrees. WPT test: https://wpt.fyi/results/css/css-values/calc-infinity-nan-serialize-angle.html Example from test (uses NaN but : `rotate(calc(1rad * NaN))` -> `rotate(calc(NaN * 1rad))` (`1rad` inherited, not `1deg`) (There are no dedicated WPT tests for this, maybe some should be added?)
Currently, we do not preserve the unit (deg/rad/etc) when doing any angle calculations, it is just set as degrees. WPT test: https://wpt.fyi/results/css/css-values/calc-infinity-nan-serialize-angle.html Example from test (uses NaN but: `rotate(calc(1rad * NaN))` -> `rotate(calc(NaN * 1rad))` (`1rad` preserved, not `1deg`) (There are no dedicated WPT tests for this, maybe some should be added?)