LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtOct 16, 2026, 9:28 PM
updatedAtOct 16, 2026, 10:11 PM
githubUrlhttps://github.com/neomjs/neo/issues/19832
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 16, 2026, 10:09 PM

Pin content-sized rows sized by a locked column, on both sides

Closed v13.3.0/archive-v13-3-0-chunk-2 enhancementaitestinggrid
neo-opus-ada
neo-opus-ada commented on Oct 16, 2026, 9:28 PM

Context

On 2026-10-16 the operator asked whether content-sized rows (#19658, 13.3's headline) were tested with locked columns. The answer was: only implicitly.

  • Showcase e2e: IssuesShowcase.spec.mjs checks that row heights are "alike in all three bodies". Only its start-locked Title wraps; its end-locked State column does not.
  • WrapTextMeasure e2e: WrapTextMeasure.spec.mjs uses the grid-wrap-text fixture, whose wrapped tag column is locked to the start. A probe of that fixture's first screen (1200×800, 16 rendered rows) found that the locked tag holds no row's tallest text: the center text holds 12 and 4 sit at the rowHeight floor. The spec's fit check therefore passes without a single row being sized by a locked body.
  • No wrapped column locked to the end: no fixture or example has one.

A local probe ran the same fixture with tag locked to the end and narrowed to 56px, served through a route rewrite with no repo change. Five of 16 rendered rows took their height from the end-locked cell alone, and every row fit its tallest text in both bodies. The engine works; nothing in CI would notice if it stopped.

The Problem

The contract "every row is as tall as its tallest wrapped text, in each body alike" has two halves:

  • the bodies agree on a height;
  • the height covers every body's text.

CI pins the first half. The second half is pinned only for the center body, because no CI fixture's first screen has a row whose tallest text is locked, at either side. A regression that measured only the center body, for example a measure pass that skipped bodyEnd, would stay green.

The Architectural Reality

  • grid.View#measureRowHeights (src/grid/View.mjs) collects the wrapped cells of every body through me.bodies (bodyStart, body, bodyEnd). It feeds them per record into measuredHeight(fields), which takes the maximum across fields.
  • Premeasurement (#19688), grid.View#runAheadMeasure, measures rows before they mount through a hidden measure row per body (rowMeasureVdom). It is a second path that has to cover the locked bodies too.
  • grid-wrap-text is shared: PremeasureRowsNL.spec.mjs asserts timing- and geometry-sensitive behaviour on its current columns, and grid-two-views imports its store. Adding an end column there would change what those specs measure.

The Fix

  1. A new component fixture, test/playwright/component/apps/grid-locked-wrap/. It holds one grid constructed with three wrapped columns: one locked to the start, one in the center, and one locked to the end. Its records rotate which of the three holds the long text, so every screen has rows sized by each body.
  2. A spec beside WrapTextMeasure.spec.mjs. In a real browser it asserts:
    • each of the three bodies holds the tallest text of at least one rendered row (the non-vacuity check);
    • every rendered row is as tall as its tallest text in all three bodies, on the first screen and after a scroll.
  3. Red first, by mutation. Dropping bodyEnd from the measure pass, and separately bodyStart, turns the spec red. If premeasurement still covers a dropped body, its path is mutated as well, so the spec provably reaches each locked body's measurement.

No engine change is expected. If the spec finds a defect, the fix goes in the same PR only if it is local to the measure pass; anything wider becomes its own ticket.

Acceptance Criteria

  • AC-1: grid-locked-wrap constructs a grid with wrapped columns locked to the start and to the end, plus a wrapped center column. On its first screen, each body holds at least one row's tallest text.
  • AC-2: in a real browser, the spec asserts each body's non-vacuity and every rendered row's fit, in all three bodies, before and after a scroll.
  • AC-3: the spec is red with bodyEnd, and separately bodyStart, removed from content-sized measurement, and green on dev. The PR body records both mutation runs.
  • AC-4: WrapTextMeasure.spec.mjs and PremeasureRowsNL.spec.mjs stay green and unchanged.

Out of Scope

  • Locked columns combined with row animation, anchor correction, two views on one store, or a responsive breakpoint. These are the other locked-column gaps reported on 2026-10-16, each a separate leaf if wanted.
  • A non-vacuity assertion in IssuesShowcase.spec.mjs: that spec pins the showcase, not the measurement contract.
  • Any change to grid-wrap-text or its specs.

Related

#19658 (content-sized rows) · #19688 (premeasurement) · #19704 (the 10k example) · #19756 (the issues showcase)

Decision Record impact: none.

Live latest-open sweep: latest 20 open issues at 19:27Z, no equivalent. The adjacent #19829 (Grace) wraps tree columns and does not touch locked bodies. gh search issues "locked column wrap content-sized" (open) found nothing. A2A sweep: the latest 30 messages, all read states; no claim on this scope. MC sweep: one query on the gap; the only hit is this session's own 16:05Z report of it to the operator. Own-assignment sweep: no open ticket of mine on this surface.

Origin Session ID: ac1f92da-06ba-4c59-8e6e-25a2d1397d69

Retrieval Hint: "content-sized rows locked column drives row height start end non-vacuity"

tobiu referenced in commit df019b9 - "test(grid): pin content-sized rows sized by a locked column, on both sides (#19832) (#19834) on Oct 16, 2026, 10:09 PM
tobiu closed this issue on Oct 16, 2026, 10:09 PM