<div>
    <span>CONTENT</span>
</div>
div {
    aspect-ratio: 1.5;
    border: 10px dashed yellowgreen; /* The area up to the outer edge of the border 
                                        corresponds to border-box */
    padding: 30px; /* The area up to the outer edge of the padding corresponds to padding-box
                      The inner area inside the padding corresponds to content-box */
    background: #f2f2f2 url("earth.jpg") no-repeat;
    background-origin: padding-box; /* initial value */
}
div span { /* content-box styling */
    color: white;
    background-color: blue;
    display: block;
}
CSS Live Demo: background-origin Click the demo button below!
selector {
    background-origin: border-box | padding-box | content-box
}
The box model of an element
The box model of an element
/* Keyword values */
background-origin: border-box;
background-origin: padding-box;
background-origin: content-box;

/* Global values */
background-origin: inherit;
background-origin: initial;
background-origin: revert;
background-origin: revert-layer;
background-origin: unset;
<div class="box">codingCourses</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;
}
Rendered Output