Skip to content

Commit

Permalink
[css-images-3] Swap the order of computed-value canonicalization for …
Browse files Browse the repository at this point in the history
…image-orientation:<angle>, so it actually stays in the desired range.
  • Loading branch information
tabatkins committed Oct 5, 2020
1 parent 3b265f5 commit b5a3659
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions css-images-3/Overview.bs
Expand Up @@ -1570,12 +1570,6 @@ Image Processing {#image-processing}
Positive <<angle>> values cause the image to be rotated to the right
(in a clockwise direction),
while negative values cause a rotation to the left.
The computed value of the property is calculated
by moduloing the value by ''1turn''
(so that it lies in the half-open range [''0turn'', ''1turn'')),
then rounding it to the nearest quarter-turn,
rounding away from 0
(so ''45deg'' rounds to ''90deg'', etc).
If the <<angle>> is omitted, it defaults to ''0deg''.

If ''flip'' is specified,
Expand All @@ -1590,6 +1584,12 @@ Image Processing {#image-processing}
Note: This value allows all 8 possible EXIF orientations
that ''image-orientation/from-image'' can produce
to be manually reproduced.

The computed value of the property is calculated
by rounding the <<angle>> to the nearest quarter turn,
rounding towards positive infinity when that's ambiguous,
then moduloing the value by ''1turn''
(so that it lies in the half-open range [''0turn'', ''1turn'')).
</dl>

<!--
Expand Down

0 comments on commit b5a3659

Please sign in to comment.