css3please icon indicating copy to clipboard operation
css3please copied to clipboard

rotate fails ie9.

Open paulirish opened this issue 13 years ago • 2 comments

from http://paulirish.com/2010/introducing-css3please/#comments ...

IMPORTANT!!!

Rotate will NOT work cross browser, in IE9 both -ms-transform and filter will be used. Result will be that if you rotate 90 degrees, IE9 will actually rotate 180 degrees, because it just rotates twice!!

So, solution could be, leave out -ms-transform.. problem with this is: do context menu -> print preview, when you print the webpage it will NOT rotate!!

test page: http://jetibest.site90.com/stackoverflow_example.htm

paulirish avatar Oct 25 '11 19:10 paulirish

I assume you don't support css hacks but maybe you could do:

:root .box_rotate { filter:none; }

according to this http://blog.vervestudios.co/blog/post/2011/05/13/IE9-Only-CSS-Hack.aspx.

Alternatively, use

.ie9 .box_rotate { filter:none; }

but that would require implementation of your conditional header. (paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/)

uxder avatar Jan 18 '12 14:01 uxder

the :root one is pretty nice. let's do that!

paulirish avatar Mar 05 '12 03:03 paulirish