Style backgroundClip Property
Style backgroundClip Property
The backgroundClip property is used to either set or return the painting area of the background.
Syntax:-
Its syntax is:- object.style.backgroundClip OR object.style.backgroundClip = border-box|padding-box|content-box|initial|inherit
Return:-
Its return is:- string having background-clip property of an element
Further Explanation:-
Value | Description |
---|---|
border-box | The background is clipped to border-box |
padding-box | The background is clipped to padding-box |
content-box | The background is clipped to content-box |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |