Skip to content

Commit ebdeb61

Browse files
committed
[css-images] Swap order of round/mod for image-orientation, so you get consistent answers for same angle.
1 parent 6027891 commit ebdeb61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-images/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,11 +1502,11 @@ Orienting an Image on the Page: the 'image-orientation' property {#the-image-ori
15021502
(in a clockwise direction),
15031503
while negative values cause a rotation to the left.
15041504
The computed value of the property is calculated
1505-
by rounding the specified angle to the nearest quarter-turn
1506-
(90deg, 100grad, .25turn, etc.),
1505+
by moduloing the value by ''1turn''
1506+
(so that it lies in the half-open range [''0turn'', ''1turn'')),
1507+
then rounding it to the nearest quarter-turn,
15071508
rounding away from 0
1508-
(that is, 45deg is rounded to 90deg, while -45deg is rounded to -90deg),
1509-
then moduloing the value by 1 turn (360deg, 400grad, etc.).
1509+
(so ''45deg'' rounds to ''90deg'', etc).
15101510

15111511
<>? flip
15121512

0 commit comments

Comments
 (0)