Firefox Tomorrow

css type

`<overflow-position>` CSS type

View on MDN ↗

The <overflow-position> enumerated value type defines how an alignment subject that is larger than its alignment container will overflow that container. For example, if centered items are wider than their container, the overflow may be displayed beyond the viewport’s start edge, which can’t be scrolled to. The <overflow-position> value defines whether the alignment mode should be overridden to ensure the content is visible (safe) or if the alignment mode must be adhered to (unsafe).

This data type is valid for the align-content, align-items, align-self, justify-items and justify-self properties as well as the place-content, place-items, and place-self shorthand properties. If omitted, the default overflow alignment is a blend of safe and unsafe.

Syntax

<overflow-position> = unsafe | safe

Values

The following keyword values are represented by the <overflow-position> grammar term:

  • safe

  • unsafe

    • : Regardless of the relative sizes of the alignment subject and alignment container, the given alignment value is honored.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

See also