Context
Friday's gate read on #21140 (comment) did not pass. Both cold readers named finding 4: captions are "cut mid-claim (row-…, tree grid,…, names what is wron…), and the screenshot's text shows through behind them". No lane has owned the card since the Shell (#21325) closed, and Maryam listed the finding as unowned at 14:36Z. Ada takes it for the Sun 22 Nov 17:00Z lock, so it carries no contributor labels.
The Problem
On desktop, a card whose container is at most 520 px wide shows one line of its caption (.portal-example-feature). That is every card except a lead card from 844 to 1440 px. Nothing on desktop shows the rest of the line: hover and focus open the action line, not the caption, and only a tapped phone card unclamps it. A desktop visitor cannot read the claim the card makes.
Measured on dev at 099ce4c778, dark theme:
| Page |
Viewport |
Captions cut |
Cut with a two-line clamp |
Clear cover, now → two lines (guard) |
| Start here |
1440 × 900 |
6 of 12 |
0 |
0.565 → 0.473 (0.45) |
| Start here |
1366 × 768 |
4 of 12 |
0 |
0.696 → 0.631 |
| Start here |
1280 × 720 |
4 of 12 |
0 |
0.667 → 0.596 |
| Start here |
844 × 390 |
4 of 12 |
0 |
0.696 → 0.632 |
| all 22 example routes |
1440 × 900 |
59 of 101 card views |
6 |
min 0.473 |
The six still cut at two lines have captions of 117 to 133 characters: Multi-Step Account Form, Country Statistics Grid, Sparklines, Mermaid Diagrams, plugin.Popover and Sign-up validation.
The scrim is color-mix(in srgb, <surface> 95%, transparent), so 5 % of the cover paints through behind the copy, and a cover's white text leaves a ghost under the caption.
Instrument: an in-page probe on the local Portal (Neo dev mode, built CSS carrying both rules) over every .portal-examples-list .neo-list-item that has a .portal-example-feature. A caption is cut when scrollHeight > clientHeight + 1; clear cover is the spec's own (caption.top − card.top) / card.height; the two-line column injects -webkit-line-clamp: 2 into the compact rule and measures again. Sample: "Data Grid: 100k Rows & 200 Columns" shows "Opens at 20,000 × 50 and scales to 100,000 × 200, row-…". Control: "GitHub Issues Grid" (43 characters) reads whole.
The Architectural Reality
resources/css/src/apps/portal/examples/List.css: the compact rule @container (max-width: 520px) sets .portal-example-feature { -webkit-line-clamp: 1 } under the note "Compact 1×1 cards keep resting copy tight so clear cover stays above 45 % even with a group badge" (#21325, 458a00c49a). The later @media (max-width: 600px) block sets the phone's own one-line clamp, with a tapped card that unclamps everything.
- The scrim token at the top of the file came with #21119 (
e338e1ae4a), together with the caption's note "The scrim is solid behind every line of text and fades only inside the top padding".
- Guards in
test/playwright/e2e/portal/ExamplesCatalogNL.spec.mjs: expectCardLayout (clear cover ≥ 0.45, ≥ 0.3 at phone widths) and expectCaptionContrast (≥ 4.5 against the rendered paint).
Design authority: #21119's Contract Ledger, "a proof line of more than two lines is cut with an ellipsis and stays whole in the DOM", and #20724's selected treatment, "keep the text region opaque". The compact rule's constraint (45 % clear cover) is kept.
The Fix
- In the compact rule,
.portal-example-feature clamps at two lines. The phone block keeps its one line.
- The scrim token becomes the opaque surface. The fade stays inside the top padding.
ExamplesCatalogNL.spec.mjs: the Start here test asserts, above 600 px, that no caption is cut at rest, and expectCaptionContrast asserts that a pixel in the caption's bottom padding is the surface colour.
Acceptance Criteria
Out of Scope
- The six captions longer than two lines: each group's lane shortens its own records, since
examples.json edits collide with the lanes' batches (#21539).
- The gate read's other findings: the phone header (9), the phone's chrome (5), covers (6), counts (7).
Avoided Traps
- Unclamping on hover: the gate reads frames at rest, and touch has no hover.
- A taller card: the 16:9 card is a guard of its own, and the caption has room inside it.
Related
#21140, filed beside it (40 subs). #21119, #20724, #21325, #21329.
Live latest-open + closed sweep: latest 20 open read (56 open, red band) + open and closed searches (caption, scrim, line-clamp, example card text; Out of Scope / Avoided Traps of #21119 and #20724 read) at about 2026-11-20T15:24Z; no equivalent or prior exclusion found. A2A in-flight sweep: latest 30 messages, all read-states, at 15:27Z; no claim on the card. MC sweep: "example card caption cut with an ellipsis after one line on desktop, cover text shows through behind the caption", 6 results, no prior decision beyond #20724 and #21119. Own-assignment sweep: 4 open, none on the card.
Retrieval Hint: "example card caption cut at one line on desktop, scrim lets the cover show through"
Context
Friday's gate read on #21140 (comment) did not pass. Both cold readers named finding 4: captions are "cut mid-claim (
row-…,tree grid,…,names what is wron…), and the screenshot's text shows through behind them". No lane has owned the card since the Shell (#21325) closed, and Maryam listed the finding as unowned at 14:36Z. Ada takes it for the Sun 22 Nov 17:00Z lock, so it carries no contributor labels.The Problem
On desktop, a card whose container is at most 520 px wide shows one line of its caption (
.portal-example-feature). That is every card except a lead card from 844 to 1440 px. Nothing on desktop shows the rest of the line: hover and focus open the action line, not the caption, and only a tapped phone card unclamps it. A desktop visitor cannot read the claim the card makes.Measured on
devat099ce4c778, dark theme:The six still cut at two lines have captions of 117 to 133 characters: Multi-Step Account Form, Country Statistics Grid, Sparklines, Mermaid Diagrams,
plugin.Popoverand Sign-up validation.The scrim is
color-mix(in srgb, <surface> 95%, transparent), so 5 % of the cover paints through behind the copy, and a cover's white text leaves a ghost under the caption.Instrument: an in-page probe on the local Portal (Neo dev mode, built CSS carrying both rules) over every
.portal-examples-list .neo-list-itemthat has a.portal-example-feature. A caption is cut whenscrollHeight > clientHeight + 1; clear cover is the spec's own(caption.top − card.top) / card.height; the two-line column injects-webkit-line-clamp: 2into the compact rule and measures again. Sample: "Data Grid: 100k Rows & 200 Columns" shows "Opens at 20,000 × 50 and scales to 100,000 × 200, row-…". Control: "GitHub Issues Grid" (43 characters) reads whole.The Architectural Reality
resources/css/src/apps/portal/examples/List.css: the compact rule@container (max-width: 520px)sets.portal-example-feature { -webkit-line-clamp: 1 }under the note "Compact 1×1 cards keep resting copy tight so clear cover stays above 45 % even with a group badge" (#21325,458a00c49a). The later@media (max-width: 600px)block sets the phone's own one-line clamp, with a tapped card that unclamps everything.e338e1ae4a), together with the caption's note "The scrim is solid behind every line of text and fades only inside the top padding".test/playwright/e2e/portal/ExamplesCatalogNL.spec.mjs:expectCardLayout(clear cover ≥ 0.45, ≥ 0.3 at phone widths) andexpectCaptionContrast(≥ 4.5 against the rendered paint).Design authority: #21119's Contract Ledger, "a proof line of more than two lines is cut with an ellipsis and stays whole in the DOM", and #20724's selected treatment, "keep the text region opaque". The compact rule's constraint (45 % clear cover) is kept.
The Fix
.portal-example-featureclamps at two lines. The phone block keeps its one line.ExamplesCatalogNL.spec.mjs: the Start here test asserts, above 600 px, that no caption is cut at rest, andexpectCaptionContrastasserts that a pixel in the caption's bottom padding is the surface colour.Acceptance Criteria
devand green at head.dev, green at head.Out of Scope
examples.jsonedits collide with the lanes' batches (#21539).Avoided Traps
Related
#21140, filed beside it (40 subs). #21119, #20724, #21325, #21329.
Live latest-open + closed sweep: latest 20 open read (56 open, red band) + open and closed searches (
caption,scrim,line-clamp,example card text; Out of Scope / Avoided Traps of #21119 and #20724 read) at about 2026-11-20T15:24Z; no equivalent or prior exclusion found. A2A in-flight sweep: latest 30 messages, all read-states, at 15:27Z; no claim on the card. MC sweep: "example card caption cut with an ellipsis after one line on desktop, cover text shows through behind the caption", 6 results, no prior decision beyond #20724 and #21119. Own-assignment sweep: 4 open, none on the card.Retrieval Hint: "example card caption cut at one line on desktop, scrim lets the cover show through"