I have the following css rules:
-webkit-transform: scale(0.5); -moz-transform: scale(0.5); -ms-transform: scale(0.5); -o-transform: scale(0.5); transform: scale(0.5);
What I intend to apply to a div in order to scale it, including all its contents, images, etc., to 50% of its size, keeping the same center. As you probably know, the rules I listed do exactly that, with the exception of IE7-8.
According to this site, the equivalent MS ownership rule is:
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.5, M12=0, M21=0, M22=0.5, SizingMethod='auto expand')"; filter: progid:DXImageTransform.Microsoft.Matrix( M11=0.5, M12=0, M21=0, M22=0.5, SizingMethod='auto expand');
However, they apparently do not resize the contents of the div, it seems to shift its position, but thatโs all.
CSS3Please.com reports various matrix values โโas an equivalent for a scale (0.5):
filter: progid:DXImageTransform.Microsoft.Matrix( M11=0.9999619230641713, M12=-0.008726535498373935, M21=0.008726535498373935, M22=0.9999619230641713,SizingMethod='auto expand');
I also tested them, but the effect was the same; The div seems to have changed its position, but the actual size of its contents has remained unchanged.
Finally, I tried transformie.js , which calculates the matrix through sylvester.js automatically when assigning the transform property, but the end result was still:
M11=0.5, M12=0, M21=0, M22=0.5
Just like the one I tried first, which, it would seem, did nothing but move the position of the div.
I would try cssSandpaper.js , but it looks pretty bloated for what I intend to do, plus there is no jQuery port, and I donโt know. It seems to me that adding cssQuery to the project is just for that. Most likely the results will be the same as transformie.js generates, because it seems to also use sylvester.js.
Edit: I also tried this one , which seems to come from microsoft directly, and offers the following matrix calculation method:
function resizeUsingFilters(obj, flMultiplier) {
Unfortunately, this does not scale the contents of the div itself. It seems like this may not be possible, but:
How can we model modern transform: scale
in IE8-7 so that it actually also modifies the inner content of the div?
Maybe I'm looking for something that does not exist, but I wanted to be sure. All tests were performed using IE9 in compatibility mode for IE8 and IE7 (until now he always did this work, I do not consider this unreliable, but do not hesitate to fix me if you think otherwise)