CKTIS / CSS
background-blend-mode — blending background layers
The background-blend-mode property controls how background images blend with lower layers and the background color of the same element, without blending with content behind it.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
background-blend-mode: <blend-mode>#;background-blend-mode controls how background images, including gradients, blend with lower layers and background-color. Backgrounds form an isolated group: the property does not blend them with content behind the element or affect its text. This differs from mix-blend-mode, which blends the whole element with its backdrop.
The initial value is normal; the property is not inherited. Comma-separated values follow the order of background-image: the first targets the topmost layer. A list that is too short repeats. The # in the syntax means a comma-separated list of one or more values.
normal applies no color blending. multiply multiplies corresponding color components, while screen produces a lighter result. The specification says that the background shorthand should reset background-blend-mode to normal, but Chromium 152 does not perform this reset. To restore the initial value in Chromium 152, explicitly declare background-blend-mode: normal.
In the example, an opaque yellow gradient blends with a cyan background using multiply, producing a green rectangle. The white page background does not participate in this blending.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>background-blend-mode</title>
<style>
body { background-color: white; }
.sample {
width: 160px;
height: 100px;
background-color: #00ffff;
background-image: linear-gradient(#ffff00, #ffff00);
background-blend-mode: multiply;
}
</style>
<div class="sample" role="img" aria-label="Green rectangle"></div>
</html>Result
A solid green (#00ff00) rectangle, 160 × 100 CSS pixels, on a white page.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.