You are here: Reference > CSS > properties > browser specific extensions > -webkit-background-composite
-webkit-background-composite property
Sets the compositing style for an element's background image and color.
JavaScript page for this property: webkitBackgroundComposite. You can find other example(s) there. |
Possible values:
One of the following values:
The background extends into the border of the element. | |||||||
Ignore both background image and color settings. | |||||||
Ignore background color settings. | |||||||
The background color is over the background image. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
The background does not extend into the border. | |||||||
Default. The background image is over the background color. | |||||||
Default: source-over.
Example HTML code 1:
This example illustrates the use of the -webkit-background-composite property:
|
||||
<head> <style> .common { width: 100px; height: 100px; margin: 10px; background-color: rgba(0, 0, 255, 0.4); background-image: url("border.png"); background-repeat: no-repeat; background-position: 50% 50%; color: #ffffff; float: left; } .clear { -webkit-background-composite: clear; } .copy { -webkit-background-composite: copy; } .source_over { -webkit-background-composite: source-over; } .dest_over { -webkit-background-composite: destination-over; } </style> </head> <body> <div class="common clear">clear</div> <div class="common copy">copy</div> <div class="common source_over">source-over</div> <div class="common dest_over">destination-over</div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, applet, b, bdo, big, blockQuote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:image, input:password, input:radio, input:range, input:reset, input:search, input:submit, input:text, ins, isIndex, kbd, label, legend, li, marquee, menu, object, ol, p, pre, q, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tr, tt, u, ul, var, xmp
Related pages:
External links:
User Contributed Comments