@@ -1535,13 +1535,6 @@ Image Processing {#image-processing}
15351535 the resultant image may be "sideways" or even upside-down.
15361536 The 'image-orientation' property provides a way to apply an "out-of-band" rotation to image source data to correctly orient an image.
15371537
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-
15451538 <pre class='propdef'>
15461539 Name : image-orientation
15471540 Value : from-image | none | [ <<angle>> || flip ]
@@ -1554,33 +1547,22 @@ Image Processing {#image-processing}
15541547
15551548 <strong> This property is <em> optional</em> for implementations.</strong>
15561549
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-
15651550 This property specifies an orthogonal rotation
15661551 to be applied to the element’s images
1567- before they are laid out .
1552+ before they are used in the document .
15681553 It applies to content images
15691554 (e.g. replaced elements and generated content),
15701555 as well as to decorative images applied via CSS
15711556 (such as 'background-image' ).
15721557 It does not apply to the rendering of images outside the document,
15731558 e.g. favicons in the UA’s navigation toolbars or menus, etc.
15741559
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.
15841566
15851567 Values have the following meanings:
15861568
@@ -1628,13 +1610,23 @@ Image Processing {#image-processing}
16281610 (so that it lies in the half-open range [''0turn'' , ''1turn'' )).
16291611 </dl>
16301612
1631- <!--
16321613 Values other than ''image-orientation/none'' and ''from-image'' are
16331614 <em> optional</em> to implement and <em> deprecated</em> in CSS.
1634- -->
16351615
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.
16381630
16391631 <div class="example">
16401632 The following example rotates the image 90 degrees clockwise:
@@ -1649,6 +1641,14 @@ Image Processing {#image-processing}
16491641 an angle of -270deg or 450deg.
16501642 </div>
16511643
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+
16521652<!--
16531653████ ██ ██ ███ ██████ ████████ ████████ ████████ ██ ██ ████████ ████████ ████████ ████ ██ ██ ██████
16541654 ██ ███ ███ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██
0 commit comments