Repository navigation
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
Merged
Conversation
…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
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.
cion 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 fromc51ae9bb1on and passes at its parent0fe58f004. 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-childtwin. 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 theoflist, 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-endon 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-clearfrom 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