The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features
See the new ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
unified support for transform: rotate
Of the five major browsers that support CSS transform: Chrome, Firefox, Safari, Opera, and IE 9, Opera treats css transform: rotate differently from the rest.In the other four browsers, if you set the angle of an element to a negative number, such as...
transform: rotate(-27deg);
...it stays that way, which is nice! Predictable.
However, if you do that in Opera, the browser takes the negative number and adds 360, so in the previous example, Opera changes the css property to...
transform: rotate(333deg);
...which is not what the developer may have intended. This gets noticeable if the developer animates the element by changing the rotation. A rotation from -27 degrees to 0 degrees is a 27 degree change. That same animation from 333 degrees is a big difference.
So please, Opera browser developers, make this browser do the same as your four biggest competitors. I really don't want to add Opera-specific hacks to do unneeded math.
Hi
in the absence of any URL to check, I made my own example to test: http://jsbin.com/aqucuy/2/edit
This behaves identically in Opera 11.60, Chrome and Firefox.
If this isn't what you meant, could you send me a minimal testcase?
bruce
in the absence of any URL to check, I made my own example to test: http://jsbin.com/aqucuy/2/edit
This behaves identically in Opera 11.60, Chrome and Firefox.
If this isn't what you meant, could you send me a minimal testcase?
bruce
Forums » Dev.Opera » Archived Opera Web Standards Curriculum Discussions