There's an infinite performance gain for browsers that have javascript turned off or use noscript.
Other than that, I'd say that doing this kind of stuff in CSS would by default be much faster in a web page context.
Other than that, I'd say that doing this kind of stuff in CSS would by default be much faster in a web page context.
ps. I didn't mean pure javascript solution anyway:)
[1] http://caniuse.com/flexbox - it's in the current version of all browsers (some still prefixed).