When applying a simple css3 transformation rule to an html element which contains various other elements like h1, h2, inputs, and img, I encounter the following issue:
div{
-moz-transform: scale(1) rotate(-3deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
-webkit-transform: scale(1) rotate(-3deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
-o-transform: scale(1) rotate(-3deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
-ms-transform: scale(1) rotate(-3deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
transform: scale(1) rotate(-3deg) translateX(0px) translateY(0px) skewX(0deg) skewY(0deg);
}
The issue at hand is that the font gets distorted when using the rotate property in CSS3 transformations. How can this be fixed?
Image reference:
Is there a workaround to prevent the font from distorting or looking bad when rotating with CSS3?
Note: To avoid responses like "it looks fine to me" :D please carefully examine how characters are not vertically aligned properly, for instance the word Quale specifically focusing on the letters l and e.
In my experience, Chrome displays no issues, whereas Firefox seems to have trouble with fonts during rotation.
I've noticed that the font appears normal only when it's a larger size, like, font-size:30px and above. If the font size goes below 30px, then it doesn't look right.