Skip to content

fix: stop a joined run's corner rules restyling every code Copy, and expect Add's empty badge in the cards' digit column - #6882

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-6881
Nov 23, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-6881

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

ci on main has been red since #6812 (c51ae9bb1), with two main-tier browser tests failing. Neither runs on a pull request, so #6812's own CI never ran them. Both reproduce locally on every run with CI's exact numbers. Each fails from c51ae9bb1 on and passes at its parent 0fe58f004. Reverting one file of #6812 at a time narrowed each failure to a single file.

test_code_copy_reads_sources_before_positioning_many_controls (controls.css). The new joined-run corner rules include [data-lf-joined] > .lf-mark-action.lf-ui:nth-child(1 of :not([hidden]))::part(button) and its :nth-last-child twin. A positional pseudo on the host compound before ::part() makes Chromium restyle every child of the host's parent on each insertion there. Adding a class nobody carries to that compound, or changing the of list, didn't help; deleting just those two selectors did. So with 60 lone code Copies in .lf-chrome, one append to the chrome restyled 231 elements, against 41 with one Copy. The fix sets --lf-joined-start / --lf-joined-end on the press itself from the same positional rules, and has every radius read them, the ::part(button) face's included. A probe of a notes-bearing code toolbar and a draft toolbar, with its hidden presses, read the same four radii on every child before and after.

test_obligation_action_binding_badges_use_the_available_card_action_seats (options.css). #6812 deliberately moved the empty draft's badge to --lf-sp-2, "the digit column every card's badge shares". It also moved Add's face to --lf-clear from the row's end, so the badge's centre now sits 1.1px from Add's (791.5 vs 790.4). The test asserted the old seat, over Add's centre. It now asserts the cards' shared column, with the badge still standing within the hidden Add press. That keeps #6812's intent and leaves the rest of the test, including the press keeping its seat once Add appears, unchanged.

Both tests fail on current main without this change and pass with it. Pre-commit is clean on the changed files. Focused checks pass: code Copy, a draft's finger reach past Copy, option rings, Done and the corner digit, and tests/smoke/test_plain_page.py. Nothing changes on screen.

Closes #6881 — automated triage

…expect Add's empty badge in the cards' digit column

#6812 rounded the ends of a joined run with `:nth-child(1 of :not([hidden]))` and `:nth-last-child(…)` rules, two of them on `.lf-mark-action.lf-ui …::part(button)`. Chromium answers a position asked of a host before `::part()` by restyling every child of the host's parent on each insertion there. So with 60 code blocks, appending a node to `.lf-chrome` restyled 231 elements against 41 with one block. Each press now takes `--lf-joined-start` and `--lf-joined-end` from host-level positional rules, and the radii, the part's included, read them. A probe of a code block's toolbar and a draft's toolbar, hidden presses included, reads identical corners before and after.

#6812 also stood Add's empty-draft badge in the digit column every card's badge shares (`--lf-sp-2`) and stood Add's face `--lf-clear` from the row's end, so the badge's centre no longer meets Add's exactly (791.5 against 790.4). The test now asserts that column, with the badge still over the hidden Add press, as that change intended.

Behavior changed: none on screen. test_obligation_action_binding_badges_use_the_available_card_action_seats now pins the badge to the cards' digit column rather than to Add's centre.

Closes #6881
@max-sixty
max-sixty merged commit c34badf into main Nov 23, 2026
7 checks passed
@max-sixty
max-sixty deleted the fix/issue-6881 branch November 23, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci failing on main (push)

2 participants