Skip to content

Commit b5a3659

Browse files
committed
[css-images-3] Swap the order of computed-value canonicalization for image-orientation:<angle>, so it actually stays in the desired range.
1 parent 3b265f5 commit b5a3659

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

css-images-3/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,12 +1570,6 @@ Image Processing {#image-processing}
15701570
Positive <<angle>> values cause the image to be rotated to the right
15711571
(in a clockwise direction),
15721572
while negative values cause a rotation to the left.
1573-
The computed value of the property is calculated
1574-
by moduloing the value by ''1turn''
1575-
(so that it lies in the half-open range [''0turn'', ''1turn'')),
1576-
then rounding it to the nearest quarter-turn,
1577-
rounding away from 0
1578-
(so ''45deg'' rounds to ''90deg'', etc).
15791573
If the <<angle>> is omitted, it defaults to ''0deg''.
15801574

15811575
If ''flip'' is specified,
@@ -1590,6 +1584,12 @@ Image Processing {#image-processing}
15901584
Note: This value allows all 8 possible EXIF orientations
15911585
that ''image-orientation/from-image'' can produce
15921586
to be manually reproduced.
1587+
1588+
The computed value of the property is calculated
1589+
by rounding the <<angle>> to the nearest quarter turn,
1590+
rounding towards positive infinity when that's ambiguous,
1591+
then moduloing the value by ''1turn''
1592+
(so that it lies in the half-open range [''0turn'', ''1turn'')).
15931593
</dl>
15941594

15951595
<!--

0 commit comments

Comments
 (0)