Covering the browser's viewport with a 400x200 background image using background-size:cover
:
html, body {height:100%;}
body {background:url("http://lorempixel.com/g/400/200/") center no-repeat; background-size:cover;}
I'd like to retrieve - through javascript - the computed background-size
value that is applied to the picture, for example 1536px 768px
Live demo : https://codepen.io/abernier/pen/rHkEv
NB: I just want to read it, at no time compute it (since the browser already has, in a way)