Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

::column — column pseudo-element

`::column` represents a multi-column container’s columns, primarily as targets for snapping during scrolling.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

selector::column { scroll-snap-align: start; }

::column exists only on multi-column containers: one per column, without individual selection. It is not a table-column selector.

It is an empty pseudo-element, not a text wrapper. It occupies the column area, excluding gaps. Only scroll-margin, scroll-snap-align, and scroll-snap-stop apply, not arbitrary backgrounds or typography.

It permits ::column::scroll-marker; the marker inherits from the originating element, not ::column.

This is a draft feature. The example’s console output was verified in isolated Chromium 157.0.8103.51. The check confirms that this build accepts the selector syntax, not that scroll snapping works. The Chromium 152 scope does not establish support.

Examples

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Column snap targets</title>
  <style>
    .pages {
      inline-size: 16rem;
      max-inline-size: 100%;
      block-size: 8rem;
      columns: 1;
      column-gap: 0;
      column-fill: auto;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
    }
    .pages p { margin: 0; }
    .pages p + p { break-before: column; }
    .pages::column { scroll-snap-align: start; }
  </style>
</head>
<body>
  <div class="pages" role="region" aria-label="Column pages" tabindex="0">
    <p>Page A</p>
    <p>Page B</p>
    <p>Page C</p>
  </div>
  <script>
    const supported = CSS.supports('selector(::column)');
    console.log('::column selector syntax: ' + (supported ? 'supported' : 'unsupported'));
  </script>
</body>
</html>

Result

::column selector syntax: supported

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources