Glossary Term
background-clip
The background-clip CSS property sets whether an element’s background extends underneath its border box, padding box, or content box.
The background is always drawn behind the border, so background-clip: border-box has a visual effect only when the border is partially opaque or has transparent or partially opaque regions. Also, the background-clip: text property has little to no visual effect if the text is fully or partially opaque.
Note: Because the root element has a different background painting area, the background-clip property has no effect when specified on it. See “The backgrounds of special elements.”
Note: For documents whose root element is an HTML element: if the computed value of background-image on the root element is none and its background-color is transparent, user agents must instead propagate the computed values of the background properties from that element’s first HTML <body> child element. The used values of that <body> element’s background properties are their initial values, and the propagated values are treated as if they were specified on the root element. It is recommended that authors of HTML documents specify the canvas background for the <body> element rather than the HTML element.
Syntax example: background-clip: border-box;
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
