background-clip
Introduction
The background-clip CSS property sets whether an element's background extends underneath its border box, padding box, or content box.
Examples

Syntax
Values
-
border-box
The background extends to the outside edge of the border (but underneath the border in z-ordering). -
padding-box
The background extends to the outside edge of the padding. No background is drawn beneath the border -
content-boxThe background is painted within (clipped to) the content box. -
border-areaThe background is painted within (clipped to) the area painted by the border, takingborder-widthinto account.
Note
If the length of background-clip is less than background-image, the first clip value will effect on all remained background-image.
Formal definition
| Initial value | border-box |
| Applies to | all elements |
| Inherited | no |
| Animatable | no |
Formal Syntax
Difference between web
-
Only support
border-box、padding-box、content-box、border-area -
background-clip:textis not support, and if want show text with gradient color, just setcolor: <gradient>. -
border-areadoesn't takeborder-styleinto account.
Compatibility
LCD tables only load in the browser