Skip to content

Commit

Permalink
[css-images-3] Merge the two image-orientation:<angle> grammar clauses.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Oct 5, 2020
1 parent ff22f40 commit 3b265f5
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions css-images-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,7 @@ Image Processing {#image-processing}

<pre class='propdef'>
Name: image-orientation
Value: from-image | none | <<angle>> | [ <<angle>>? flip ]
Value: from-image | none | [ <<angle>> || flip ]
Initial: from-image
Applies to: all elements
Inherited: yes
Expand Down Expand Up @@ -1565,9 +1565,9 @@ Image Processing {#image-processing}
If there is no orientation specified in its metadata,
this value computes to ''image-orientation/none''.

<dt><dfn><<angle>></dfn>
<dt><dfn lt="<angle>|flip|<angle> || flip"><<angle>> || flip</dfn>
<dd>
Positive values cause the image to be rotated to the right
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
Expand All @@ -1576,26 +1576,20 @@ Image Processing {#image-processing}
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,
after rotation the image is flipped horizontally.

This value only applies to content images;
decorative images continue to behave as ''from-image''.
This value is deprecated
and is optional for implementations
except those conforming to [[!CSS-PRINT]].

<dt><dfn><<angle>>? flip</dfn>
<dd>
Identical to the plain <<angle>> case,
except that after rotation the image is flipped horizontally.
If the <<angle>> is omitted,
it defaults to ''0deg''.

This value only applies to content images;
decorative images continue to behave as ''from-image''.
This value is deprecated
and is optional for implementations.

Note: This value is only necessary to represent all 8 possible EXIF orientations that <a value for=image-orientation>from-image</a> can produce.
Note: This value allows all 8 possible EXIF orientations
that ''image-orientation/from-image'' can produce
to be manually reproduced.
</dl>

<!--
Expand Down

0 comments on commit 3b265f5

Please sign in to comment.