Repository navigation
Fix the bugs that the open expected-failure markers were hiding - #1764
Merged
Merged
Conversation
…has focus Since native package scopes (#1591), a bare selector in a widget package's sheet matches only descendants of a declared tag. The rule that sets `--lf-ask-ring: none` on the decision around a focused `lf-options[choose]` named the decision as `[data-lf-ask]`, so an `lf-ask` standing at the page's top level, which is a widget root rather than a descendant of one, kept its outer ring around a control that is already a frame: two rings for one fact. The rule now matches the decision as a scope root or a descendant of one. Behavior moved: with the keyboard inside a joined options control, only the exact row draws the band, as before #1591. The three tests that pin it lose their expected-failure markers. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The pane role's grammar (which row each child stands in, a body held to the pane's width with no margin of its own) is meant to hold over what a widget declares for itself. It relied on specificity for that. Since native package scopes (#1591), a widget root rule is written `:scope:is(lf-board)`, which ties the kernel's `[data-lf-reading-role="pane"] > :not(header, footer)` on specificity and then wins on scope proximity. So the board's `min-inline-size` beat the body's `min-width: 0`: in the feature gallery at 1024px the Follow-ups board stood 201px outside its pane and 177px past the root scrollport. The four grammar rules move from the kernel's theme.css (lf-base) into layouts.css's lf-layouts tier, which ranks above every package whatever the selector. The look stays a `:where()` default in theme.css. Behavior moved: a widget that is a pane's body is held to the pane's width and block margin again; a board there scrolls its columns inside the pane. The render-gate test that pins it loses its expected-failure marker. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… button
Pressing Resolve on a page thread re-renders it without the button, so focus
falls back to the thread itself through `landInThread`. That landing reveals a
box that is not wholly in view with `scrollIntoView({block: "nearest"})`
(#1571), and a thread taller than the window is never wholly in view: nearest
aligns its head with the window's top, so a twelve-message thread jumped the
page 689px away from where the user had pressed.
A box longer than the window along an axis now counts as shown there when any
of it is in view, since no scroll could show it whole. A box that fits is
still revealed whole, so entering a reply at the window's foot still brings
its writing area up.
Behavior moved: resolving a long page thread by its button leaves the page
where it was; the two parametrized cases lose their expected-failure marker.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The marker recorded an intermittent stale style on main ef89dfd: the accepted `lf-old` kept painting with `data-lf-retired` set. It no longer reproduces: 3 of 3 serial runs and 18 of 18 `leaf-dev flake` copies pass on 777bdb1, and Linux CI XPASSed it on f64b3e0. #1719 lifted the same stale-style family's other quarantines on the same evidence. Behavior moved: none; the test asserts the hidden slot again. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`presentPage` stamps `data-lf-presented`, which opens interaction, and then dispatches PRESENTATION, the one event in which box-derived apparatus replaces its provisional startup reading. Since #1605 awaited the arrival landing between the two, the stamp's turn ended before PRESENTATION ran, so whatever ran there (a `presented` waiter, an observer of the stamp, or a frame where the landing waits on an editor) read the contents map's authored spans: 203px for a section replay had grown to 611px. PRESENTATION now runs after the landing's synchronous part, as it did before #1605, and the landing is still awaited before the version notice. Behavior moved: when the page reads as presented, the contents map already spans the replayed sections. The test that pins it loses its expected-failure marker. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The long and very-long page-mark arrivals were marked for cutting a glyph under the pinned heading (main ef89dfd). That stopped with #1715, which starts a long arrival at the latest turn's head. The test's list of block boundaries held thread children and paragraphs but not turns, so a landing on the latest message's head read as a cut through a content block, though no text line straddles the heading (the `crossedLines` reading is empty). The boundary list now includes each transcript turn and checkpoint. A landing mid-paragraph still fails both readings. Behavior moved: none in the product; both cases lose their expected-failure marker. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves the eight open
xfail(strict=False)markers. Six of them were hiding four real product bugs, now fixed in the product; one test was wrong; one already passed.lf-layoutstier.Each case passed three runs on the final tree;
npm run test:runtimepasses.