background-clip

The background-clip property determines the area within which the background is painted.

CSS3

Values

background-clip: value
Value Initial Description
border-box border-box Background is painted within (clipped to) the border box
content-box Background is painted within (clipped to) the content box
padding-box Background is painted within (clipped to) the padding box

DOM

object.style.backgroundClip = "value";

Example | border-box

Example | content-box

Example | padding-box

Example | DOM

External

W3C CSS Backgrounds and Borders Module Level 3