I use this css to vertically center things inside their parent:
transform: translateY(-50%);
This does the trick, but in chrome the horizontal lines of the border (for example) are sometimes blurred, because of the fractional coordinate, due to the division by 2 of the parent dimensions.
I have read that a possible solution could be to add:
transform-style: preserve-3d;
to the parent, but i don't see any effect.
Is there a real solution without using js to round the coordinates?
I made this very simple fiddle to show what i mean, i put a hard coded fractional coordinate to force the problem. Please use chrome, for example Safari doesn't have this problem.