backgroundClip property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the background painting area.
![]() ![]() |
Syntax
Integer value = object.put_backgroundClip(BSTR v);Integer value = object.get_backgroundClip(BSTR* sClip);
Property values
Type: BSTR
border-box (border-box)
Default. The background is painted within (clipped to) the border box.
padding-box (padding-box)
The background is painted within (clipped to) the padding box.
content-box (content-box)
The background is painted within (clipped to) the content box.
String format
border-box | padding-box | content-box
CSS information
| Applies To | All elements |
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS Backgrounds and Borders Module Level 3, Section 3.7
Remarks
In Windows Internet Explorer 9, the background of a box can have multiple layers. The number of layers is determined by the number of comma-separated values in the background-image property. Each of the images is sized, positioned, and tiled according to the corresponding value in the other background properties (background-attachment, background-clip, background-origin, background-position, background-repeat, and background-size). The first image in the list is the layer closest to the user, the next one is painted behind the first, and so on.
Requirements
Minimum supported client |
Windows Vista with SP1, Windows 7 |
Minimum supported server |
Windows Server 2008 R2 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |
See also
Reference
Build date: 1/23/2012
.png)
.png)