CSS-Based Image Orientation Comes To Firefox 26

rated by 0 users
This post has 1 Reply | 0 Followers

Top 10 Contributor
Posts 26,744
Points 1,210,130
Joined: Sep 2007
ForumsAdministrator
News Posted: Sun, Sep 15 2013 1:35 AM
The final build of Firefox 26 isn't yet available to the public, but those interested in Nightlies can tap into one interesting piece of code right now. Firefox 26 is set to support CSS Image Orientation -- a feature already supported by rival browsers Chrome and Safari, but only when the image is the top-level document, but not in HTML documents. In other words, web developers have had to resort to a number of workarounds in order to ensure that images weren't mistakenly displayed sideways.


The new CSS image-orientation property, supported in Firefox 26, is the answer once applied to a JPEG image. In use, it'll "take its EXIF orientation tag into account when performing layout and rendering." In other words, by adding just a single CSS property, smartphone and camera images will be displayed in their correct orientation.

Hopefully, the inclusion will become commonplace across all browsers in due time. It sure feels like one of those things that should've been sorted long, long ago.
  • | Post Points: 20
Not Ranked
Posts 50
Points 395
Joined: Mar 2011

neat

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS