<div>codingEverybody</div>
div {
    font-size: 2em;
    font-weight: 900;
    text-align: center;
    border: 10px dashed red;  /* border의 가장자리까지의 영역이 border-box */
    padding: 30px; /* padding의 가장자리까지의 영역이 padding-box
                      padding의 안쪽 영역이 content-box */
    background-image: url("flower.jpg");
    background-position: center;
    background-clip: border-box; /* 초깃값 */
}
데모 적용해 보기: background-clip 데모 버튼을 클릭해 보세요!
background-clip: border-box | padding-box | content-box | text
box model
요소 박스의 Box model
/* 키워드 값 */
background-clip: border-box;
background-clip: padding-box;
background-clip: content-box;
background-clip: text;

/* 글로벌 값 */
background-clip: inherit;
background-clip: initial;
background-clip: revert;
background-clip: revert-layer;
background-clip: unset;
/*
    2024 년도 이전의 Webkit 기반의 브라우저에서는
    background-clip: text는 지원하지 않았습니다.
    vendor prefix인 '-webkit-'을 포함하여 사용했어야 합니다.
*/
-webkit-background-clip: text;

/*  2024 년도부터는 대부분의 브라우저에서 
    '-webkit-'이 text 값을 지원합니다.
*/
background-clip: text;
selector {
    background-clip: text;
    /* 텍스트의 배경이 보이려면
       텍스트의 색상은 투명(transparent)해야 합니다. */
    color: transparent;
}
<div>TEXT</div>
div {
    font-size: 50px;
    font-weight: 900;
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(red, blue);
}
실제 적용 모습

caniuse.com에서 더 자세한 정보를 확인해 보세요.