CSS Background. Combining content-box with cover
问题 If I use both background-origin: content-box; and background-size: cover; on an element with some padding. The background image still covers the bottom padding (in latest versions of Safari, Chrome, Firefox and IE) div { background-image: url('http://lorempixel.com/400/200/'); background-origin: content-box; background-repeat: no-repeat; background-size: cover; border: 5px red solid; padding: 20px; } jsfiddle here Is this the correct behaviour? If so, why (am I missing something obvious here)