<div>
    <span>CONTENT</span>
</div>
div {
    aspect-ratio: 1.5;
    border: 10px dashed yellowgreen; /* border(ボーダー)の外側の縁までの領域が border-box です */
    padding: 30px; /* padding(パディング)の外側の縁までの領域が padding-box、
                     paddingの内側の領域が content-box です */
    background: #f2f2f2 url("earth.jpg") no-repeat;
    background-origin: padding-box; /* 初期値 */
}

div span { /* content-box(コンテンツボックス)のスタイリング */
    color: white;
    background-color: blue;
    display: block;
}
デモ実践:background-origin デモボタンをクリックしてみてください!
selector {
    background-origin: border-box | padding-box | content-box
}
要素ボックスの Box model
要素ボックスの Box model
/* キーワード値 */
background-origin: border-box;
background-origin: padding-box;
background-origin: content-box;

/* グローバル値 */
background-origin: inherit;
background-origin: initial;
background-origin: revert;
background-origin: revert-layer;
background-origin: unset;
<div class="box">コーディングエブリバディ</div>
.box {
    color: #fff;
    background-image: linear-gradient(
                        to right,
                        rgba(255, 0, 0, 0.5),
                        rgba(0, 0, 255, 0.5),
                        rgba(0, 128, 0, 0.5)
                      ),
                      radial-gradient(circle, gold, silver);
    border: 15px dashed yellowgreen;
    padding: 15px;
    background-origin: padding-box, content-box;
    background-repeat: no-repeat;
}
実際に適用された様子