Recently, I encountered an issue with an iframe in my project. Initially, without any 'transform:scale' css applied, it displayed on the top-left side of the div as expected. However, after adding
-webkit-transform:scale(0.6,1);
margin-left:0.0em;
to its css properties, the iframe automatically scaled itself to the center, which was not the desired outcome.
If you want to take a closer look at the issue, feel free to check out my JSFiddle link here: JS Fiddle link