container-type — query container type
The `container-type` property enables queries about an element’s size, scroll state, or active anchor-positioning fallback. It lets descendant styles respond to a container rather than to the viewport.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The `container-type` property enables queries about an element’s size, scroll state, or active anchor-positioning fallback. It lets descendant styles respond to a container rather than to the viewport.
Specifies a substitute inner size along the block axis under size containment, without deriving that size from descendants.
contain-intrinsic-height supplies a substitute inner height for size-contained elements. It neither enables size containment nor replaces the height property.
contain-intrinsic-inline-size supplies a substitute intrinsic size along the inline axis when sizing is contained independently of content.
contain-intrinsic-size supplies a substitute content size under size containment. It preserves space even when layout does not determine the element’s size from its descendants.
contain-intrinsic-width supplies a substitute content width for size containment. It does not enable containment or replace the width property.
The content property specifies CSS-generated content, most commonly in ::before and ::after. It can add text, images, attribute values, or counters without putting them in the document markup.
content-visibility controls rendering of an element’s contents. It lets the browser skip work while retaining the element’s own box.
A logical CSS shorthand setting the shapes of both block-end corners independently of their radii.
A logical CSS shorthand setting the shapes of the two block-start corners. The sizes of the corner regions are controlled separately by border-radius.
The corner-bottom-left-shape property specifies the shape of the physical bottom-left corner. border-bottom-left-radius determines the corner area's size; without a nonzero radius, changing the shape has no visible effect.
The corner-bottom-right-shape property controls the physical bottom-right corner's shape. It works with border-bottom-right-radius: the radius sizes the corner area, while the shape determines its contour.
A CSS shorthand selecting the bottom-left and bottom-right corner shapes independently of their radii.
corner-end-end-shape controls the corner where block-end meets inline-end. Its size is set separately by a radius, such as border-end-end-radius.
The corner-end-start-shape property sets the shape of the corner at the block-end and inline-start sides. It does not set its size: a nonzero radius is needed for a visible effect.
A logical CSS shorthand that sets the shapes of the two inline-end corners. It accepts one or two shape values; border-radius still determines the size of the corner areas.
A logical shorthand that specifies the shapes of both inline-start corners without changing their radii.
A CSS shorthand setting the shapes of the two physical left corners without changing their radii.
A CSS shorthand setting the top-right and bottom-right corner shapes without changing their radii.
corner-shape selects corner geometry within the area defined by border-radius. Without a nonzero radius, it has no visible effect.
Sets the shape of the block-start, inline-end corner independently of its radius.
The corner-start-start-shape property sets the shape of one logical corner: where the block-start and inline-start sides meet. It operates within the area established by the corner radius; it does not set that area's size itself.
The corner-top-left-shape property defines the physical top-left corner's shape. Its region is sized separately by border-top-left-radius.
The corner-top-right-shape property defines the top-right corner’s shape; border-top-right-radius determines its size.