Re: [csswg-drafts] [css-values] Consider removing asymptotic special-cases for tan() (#8527)

er, I guess my note duplicated what Tab already said; I skimmed their post too quickly. :) Sorry.

Just to illustrate the roundtripping thing...  here's a trivial data-uri testcase to test the expectation that `atan(tan(90deg)` roundtrips as `90deg`):

Testcase:
```
data:text/html,
<style>*{transform-origin:0 0}body{margin: 30px}</style>
<div style="transform:rotate(atan(tan(90deg))">abc</div>
```
Reference:
```
data:text/html,
<style>*{transform-origin:0 0}body{margin: 30px}</style>
<div style="transform:rotate(90deg)">abc</div>
```

Chromium/WebKit render both of these with "c" at the bottom.  Firefox renders the testcase with "c" at the top.
(Chromium/WebKit flip the orientation and render "c" at the top if I use `90.001` in the testcase, to explicitly shift to the other side of the magic 90deg discontinuity.)

-- 
GitHub Notification of comment by dholbert
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8527#issuecomment-1457263940 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 7 March 2023 00:23:57 UTC