- From: jfkthame via GitHub <sysbot+gh@w3.org>
- Date: Mon, 06 Mar 2023 16:36:00 +0000
- To: public-css-archive@w3.org
Right, for specified values that don't involve `calc()`, I guess we just rely on [the CSSOM spec](https://www.w3.org/TR/cssom-1/#serializing-css-values), which says that:
> [`<angle>`](https://www.w3.org/TR/css-values-4/#angle-value)
The `<number>` component serialized as per `<number>` followed by the unit in canonical form as defined in its respective specification.
So
```
target.style.transform = 'rotate(1rad)'; target.style.transform
```
should (and does) return `rotate(1rad)`.
But as soon as `calc()` is introduced, the simplification rules mean the resulting serialization should use `deg`.
--
GitHub Notification of comment by jfkthame
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8530#issuecomment-1456476568 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 6 March 2023 16:36:01 UTC