Skip to content

Commit d245390

Browse files
committed
[css-images-3] Add EXIF auto-orientation to image().
1 parent 02e9738 commit d245390

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

css-images-3/Overview.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ <h3 id=image-notation><span class=secno>3.2. </span> Image Fallbacks and
502502
or is a type that the browser doesn't recognize
503503

504504
<li>use a solid color as an image
505+
506+
<li> automatically respect the image orientation specified in the image's
507+
metadata
505508
</ul>
506509

507510
<p>The ‘<code class=css>image()</code>’ notation is defined as:
@@ -520,6 +523,10 @@ <h3 id=image-notation><span class=secno>3.2. </span> Image Fallbacks and
520523
rel=biblioentry>[CSS3VAL]<!--{{!CSS3VAL}}--></a>) when a specified
521524
<code class=css>image()</code>’ value is computed.
522525

526+
<p>If the image has an orientation specified in its metadata, such as EXIF,
527+
the UA must rotate or flip the image to correctly orient it as the
528+
metadata specifies.
529+
523530
<h4 id=image-fragments><span class=secno>3.2.1. </span> Image Fragments</h4>
524531

525532
<p>When a URL specified in ‘<code class=css>image()</code>’ represents

css-images-3/Overview.src.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ <h3 id="image-notation">
222222
<li>specify fallback images in case the preferred image can't be decoded or is a type that the browser doesn't recognize</li>
223223

224224
<li>use a solid color as an image</li>
225+
226+
<li>
227+
automatically respect the image orientation specified in the image's metadata
225228
</ul>
226229

227230
<p>The ''image()'' notation is defined as:
@@ -231,6 +234,11 @@ <h3 id="image-notation">
231234

232235
<p>Each ''&lt;string>'' or ''&lt;url>'' inside ''image()'' represents an image, just as if the <a href="#url-notation">''url()'' notation</a> had been used. As usual for URLs in CSS, relative URLs are resolved to an absolute URL (as described in Values &amp; Units [[!CSS3VAL]]) when a specified ''image()'' value is computed.</p>
233236

237+
<p>If the image has an orientation specified in its metadata,
238+
such as EXIF,
239+
the UA must rotate or flip the image to correctly orient it
240+
as the metadata specifies.
241+
234242
<h4 id="image-fragments">
235243
Image Fragments</h4>
236244

0 commit comments

Comments
 (0)