Skip to content

Commit 3b265f5

Browse files
committed
[css-images-3] Merge the two image-orientation:<angle> grammar clauses.
1 parent ff22f40 commit 3b265f5

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

css-images-3/Overview.bs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ Image Processing {#image-processing}
15101510

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

1568-
<dt><dfn><<angle>></dfn>
1568+
<dt><dfn lt="<angle>|flip|<angle> || flip"><<angle>> || flip</dfn>
15691569
<dd>
1570-
Positive values cause the image to be rotated to the right
1570+
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.
15731573
The computed value of the property is calculated
@@ -1576,26 +1576,20 @@ Image Processing {#image-processing}
15761576
then rounding it to the nearest quarter-turn,
15771577
rounding away from 0
15781578
(so ''45deg'' rounds to ''90deg'', etc).
1579+
If the <<angle>> is omitted, it defaults to ''0deg''.
1580+
1581+
If ''flip'' is specified,
1582+
after rotation the image is flipped horizontally.
15791583

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

1586-
<dt><dfn><<angle>>? flip</dfn>
1587-
<dd>
1588-
Identical to the plain <<angle>> case,
1589-
except that after rotation the image is flipped horizontally.
1590-
If the <<angle>> is omitted,
1591-
it defaults to ''0deg''.
1592-
1593-
This value only applies to content images;
1594-
decorative images continue to behave as ''from-image''.
1595-
This value is deprecated
1596-
and is optional for implementations.
1597-
1598-
Note: This value is only necessary to represent all 8 possible EXIF orientations that <a value for=image-orientation>from-image</a> can produce.
1590+
Note: This value allows all 8 possible EXIF orientations
1591+
that ''image-orientation/from-image'' can produce
1592+
to be manually reproduced.
15991593
</dl>
16001594

16011595
<!--

0 commit comments

Comments
 (0)