You need to reset the size for the first image, then specify it for the second. The spec says that the initial value of background-size
is auto
, which means:
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
background-size: auto, cover;