-
Notifications
You must be signed in to change notification settings - Fork 682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-images] compute/round the <angle> value for image-orientation property is not consistent #1206
Comments
|
Yeah, it's a bug. There's no greater reasoning behind which way to round; I just needed an unambiguous answer. We can just swap the order of the round/mod to be mod/round instead, that'll take care of things. |
Heh, I was about to post the exact same thing, then I realized it wouldn't work. 315deg mod 1turn is still 315deg... |
done in ebdeb61 |
? It definitely works. It changes -45deg to round to 0deg (same as 315deg does), tho. |
Let me know if I'm missing something here: |
No, that's using the bizarro broken version of modulus popularized by C. I made it clear in the spec text that we're using the correct version of modulus, which restricts it to the half-open range [0deg, 360deg). |
Quote from the spec:
As to the
rounding away from 0
, the example says that-45deg is rounded to -90deg
. What about 315deg (the equivalence of -45deg)? Should we round it to 360deg (equivalence of 0deg) to align therounding away from 0
stuff? This is a bit confusing to me.If we intent to always make -45deg (and 315deg) always round to -90deg, then IMO this worth some more words in the spec. Since there are only four possible rounding edges (45deg, 135deg, 225deg, 315deg), maybe we could also specify all of them in the spec. instead of just putting 2 examples.
The text was updated successfully, but these errors were encountered: