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.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
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.
The background-clip property sets the boundary for painting an element’s background. It can extend the background underneath the border, stop it at the border’s inner edge, or restrict it to the content area.
The background-color property sets an element’s background color beneath its background images. Its initial value is transparent, and it is not inherited.
background-image sets background images, including gradients. A comma-separated list creates layers; the first image is on top.
Choose the reference box for background images without confusing positioning with clipping.
Use coordinates, edge offsets and percentages of the space left after sizing the background.
Set a physical horizontal coordinate for each background layer without replacing its vertical position.
Move each background up or down without confusing the physical y axis with block flow.
Control each axis separately and distinguish gaps between tiles from rescaling the tiles themselves.
The background-size property controls background image dimensions, not element dimensions. Supply explicit sizes, use auto, or fit an image with contain or cover.
baseline-shift moves content after baseline alignment or relative to its line box. The example demonstrates shifted SVG text.
baseline-source chooses the first or last baseline set of a box participating in baseline alignment.
block-size sets an element’s size along the block axis. It corresponds to height in horizontal writing modes and width in vertical writing modes, allowing layouts to adapt to writing-mode.
The border property sets the width, style, and color of all four borders. Omitted components return to their initial values, and border-image is reset as well.
Apply the same width, line style and color to block-start and block-end without hard-coding top and bottom.
Set one color for both block borders or a start/end pair while keeping their widths and line styles.
Style a single logical end edge, which can be the bottom, left or right depending on writing-mode.
Change the block-end border color, including currentColor and transparent, without resetting its line style or width.
Control the pattern at block-end and understand why none removes width while a transparent solid border keeps it.
Set the thickness of one flow-relative edge, independently of its color and line style.
Write width, line style and color together for the edge selected by the block writing direction.
Change a logical border’s paint without changing its thickness or the space it occupies.
Select a border pattern on the block-start edge and understand why none and hidden also affect layout.
Control the first block edge’s thickness and account for whether it increases or consumes the box size.