@@ -1535,13 +1535,6 @@ Image Processing {#image-processing}
1535
1535
the resultant image may be "sideways" or even upside-down.
1536
1536
The 'image-orientation' property provides a way to apply an "out-of-band" rotation to image source data to correctly orient an image.
1537
1537
1538
- Note: This property is not intended to specify layout transformations
1539
- such as arbitrary rotation or flipping the image in the horizontal or vertical direction.
1540
- (See [[CSS-TRANSFORMS-1]] for a feature designed to do that.)
1541
- It is also not needed to correctly orient an image when printing in landscape versus portrait orientation,
1542
- as that rotation is done as part of layout. (See [[CSS3PAGE]] .)
1543
- It should only be used to correct incorrectly-oriented images.
1544
-
1545
1538
<pre class='propdef'>
1546
1539
Name : image-orientation
1547
1540
Value : from-image | none | [ <<angle>> || flip ]
@@ -1554,33 +1547,22 @@ Image Processing {#image-processing}
1554
1547
1555
1548
<strong> This property is <em> optional</em> for implementations.</strong>
1556
1549
1557
- Note: This property previously used ''image-orientation/none'' as its initial value.
1558
- It is believed that using ''from-image'' as the initial value
1559
- will produce a generally better user experience,
1560
- and minimal breakage,
1561
- but future compat data as UAs attempt to make the change will confirm that.
1562
- If that is confirmed, then it is likely that this property will be removed from CSS
1563
- unless use cases other than “correct for incorrect orientation” are raised for its other values.
1564
-
1565
1550
This property specifies an orthogonal rotation
1566
1551
to be applied to the element’s images
1567
- before they are laid out .
1552
+ before they are used in the document .
1568
1553
It applies to content images
1569
1554
(e.g. replaced elements and generated content),
1570
1555
as well as to decorative images applied via CSS
1571
1556
(such as 'background-image' ).
1572
1557
It does not apply to the rendering of images outside the document,
1573
1558
e.g. favicons in the UA’s navigation toolbars or menus, etc.
1574
1559
1575
- CSS layout processing applies to the image <em> after</em> rotation,
1576
- exactly as if the image were originally encoded in its rotated form.
1577
- This implies, for example:
1578
-
1579
- * The intrinsic height and width are derived from the rotated rather than the original image dimensions.
1580
- * The height (width) property applies to the vertical (horizontal) dimension of the image,
1581
- <em> after</em> rotation.
1582
- * The hotspot coordinates of an image 'cursor' are relative to the image after rotation.
1583
- * Border images (see 'border-image' ) are sliced after rotation.
1560
+ Note: This property is not intended to specify layout transformations
1561
+ such as arbitrary rotation or flipping the image in the horizontal or vertical direction.
1562
+ (See [[CSS-TRANSFORMS-1]] for a feature designed to do that.)
1563
+ It is also not needed to correctly orient an image when printing in landscape versus portrait orientation,
1564
+ as that rotation is done as part of layout. (See [[CSS3PAGE]] .)
1565
+ It should only be used to correct incorrectly-oriented images.
1584
1566
1585
1567
Values have the following meanings:
1586
1568
@@ -1628,13 +1610,23 @@ Image Processing {#image-processing}
1628
1610
(so that it lies in the half-open range [''0turn'' , ''1turn'' )).
1629
1611
</dl>
1630
1612
1631
- <!--
1632
1613
Values other than ''image-orientation/none'' and ''from-image'' are
1633
1614
<em> optional</em> to implement and <em> deprecated</em> in CSS.
1634
- -->
1635
1615
1636
- The 'image-orientation' property must be applied before any other transformations,
1637
- such as using CSS Transforms.
1616
+ All CSS layout and rendering processes use the image <em> after</em> rotation,
1617
+ exactly as if the image were originally encoded in its rotated form.
1618
+ This implies, for example:
1619
+
1620
+ * The intrinsic height and width are derived
1621
+ from the rotated rather than the original image dimensions.
1622
+ * The height (width) property applies to
1623
+ the vertical (horizontal) dimension of the image,
1624
+ <em> after</em> rotation.
1625
+ * The hotspot coordinates of an image 'cursor'
1626
+ are relative to the image after rotation.
1627
+ * Border images (see 'border-image' ) are sliced after rotation.
1628
+ * Other transformations, such as those in [[CSS-TRANSFORMS-1]] ,
1629
+ are applied to the image <em> after</em> 'image-orientation' is applied.
1638
1630
1639
1631
<div class="example">
1640
1632
The following example rotates the image 90 degrees clockwise:
@@ -1649,6 +1641,14 @@ Image Processing {#image-processing}
1649
1641
an angle of -270deg or 450deg.
1650
1642
</div>
1651
1643
1644
+ Note: This property previously used ''image-orientation/none'' as its initial value.
1645
+ It is believed that using ''from-image'' as the initial value
1646
+ will produce a generally better user experience,
1647
+ and minimal breakage,
1648
+ but future compat data as UAs attempt to make the change will confirm that.
1649
+ If that is confirmed, then it is likely that this property will be removed from CSS
1650
+ unless use cases other than “correct for incorrect orientation” are raised for its other values.
1651
+
1652
1652
<!--
1653
1653
████ ██ ██ ███ ██████ ████████ ████████ ████████ ██ ██ ████████ ████████ ████████ ████ ██ ██ ██████
1654
1654
██ ███ ███ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██
0 commit comments