← Back to release summary

::column pseudo element for Carousel

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 135)
Intent stage
None

Summary

A ::column pseudo element, which allows applying a limited set of styles to the generated fragments. Specifically, this would be limited to styles which do not affect the layout, and thus can be applied post-layout.

Motivation

Often developers want to automatically paginate content based on the available size. This can be done today through the use of column fragmentation, though developers need access to a few additional styles to make these part of a carousel. Specifically, developers need to be able to: 1) Set scroll snap points on them. 2) Create ::scroll-markers for them.

Standards & signals

Explainers: https://github.com/flackr/carousel/tree/main/fragmentation

View on chromestatus.com