Repository navigation
Say where a box's marks stand in --lf-ring-at, and draw the location ring as a mark over the decision - #5116
Merged
Merged
Conversation
…ry mark
Where a focus ring, a location ring or an overlay mark stood round a box was decided in two places. Each control's focus rule set a distance of its own, eight of them from 5px inside to 6px outside, 17 written as lengths, and `standOver` sorted targets into controls and regions separately. They disagreed wherever a control's rule chose otherwise: Alt over a choice's label stood 3px out while its keyboard ring stood one band inside.
A box now states it once, as its own `outline-offset` in its face's rule, from four kinds base.css names ("Where it stands"): a region's gap, a control's, its edge (0), or one band inside (`--focus-ring-inset`, new). The layer's focus floor draws every keyboard ring, so a control's rule no longer restates the ring to set its distance; a box that wears the ring for a control inside it draws one and states its kind on itself. `standOver` reads the target's stated offset and keeps its own guess, a control's gap or a region's, for a box that states none. A stated 0 reads as none there, since 0 is the property's initial value, so a mark round a field stands at a control's gap; the spec says so. `test_every_ring_stands_at_a_kind_of_box` refuses an `outline-offset` written as a length. Rules that set a ring's distance only while the box holds focus go from 60 to 17, the floor and the boxes and pseudo-elements that wear a control's ring.
Behavior changes, which tests and stills read:
- Buttons, inline presses, a quote, the composer's Send and Dictate, an attachment, a trace's timeline, a live sample's frame, a tab's name and a thread card's buttons stood 1-2px out and stand at a control's 3px.
- Margin entries and reactions, 4px apart, and a diff line's comment press stood 1px out and stand on their edge.
- The rows of every list (`.lf-row`), a table's cells, a choosing group's rows and its add row, a gloss and a draft stand their ring, and every mark over them, one band inside; a draft's ring stood 5px inside. A timeline's steps and a review's cases stood 3px out.
- A side list's tab rings its whole row, inside its edge, where the ring round its name ran over the summary under it, and its open panel fills its cell, so the panel's ring meets the frame when the list is taller than the panel. Only the open panel stretches: a closed one keeps its box in the cell.
- The Alt aim over an SVG element traces its contour, as a comment on it does; it bracketed the element's box. A whole inline `<svg>` is a box for both, bracketed rather than traced shape by shape.
- An action's target no longer draws a 1px accent outline inside its edge under the overlay's brackets.
- The floating panel's faces and its view chooser read the runtime's focus-visible rather than the browser's, at the inset token, and the floor leaves a box whose focus the overlay projects to the overlay.
Tests: `test_a_side_lists_open_panel_rings_its_whole_cell` covers the side list (both halves fail with the fix reverted); the aim test on a cramped cell reads the mark's offset rather than the removed `data-lf-mark-on`; the ring cases expect the floor where it now draws.
# Conflicts: # browser/base.css # packages/default/styles/tabs.css # packages/default/styles/toc.css
…location ring as a mark over the decision A box said where its marks stand with its own `outline-offset`, which an overlay mark read back. A field says its edge, 0, which is also `outline-offset`'s initial value, so the overlay read it as nothing said and stood the Alt aim round a field 3px out while the field's focus ring replaced its border. The location ring was the one mark still drawn on the decision itself, as its outline at the region's gap, so it got none of the overlay's clip check: in a box that clips without room round the decision it lost its sides, and a question filling a full-height workspace needed a container style query, a pseudo-element painted over its contents and an `!important` to stand inside instead. A box now states where its marks stand as `--lf-ring-at`, a registered property with no initial value that doesn't inherit, so a box that says nothing reads as saying nothing. Every box's `outline-offset` reads it (surfaces.css), so the focus rings carriers draw on their own boxes stand there without restating it, and the floor keeps a control's gap for a box that says nothing. `standOver` reads it for the overlay's marks. The 38 statements move from `outline-offset` to `--lf-ring-at`; a pseudo-element that draws a box's ring above its contents keeps stating `outline-offset`, since no overlay stands over it. `test_every_ring_stands_at_a_kind_of_box` checks both. The location ring is drawn over the decision by the core painter beside the aim and the trace (target-paint.js, `paintLocation`), from `markHere`, through `standOver` like every other mark on it. So it stands where the decision says, inside the decision where a clip leaves no room outside, and above the decision's contents. One ring goes round every box a boxless decision shows through, where each part wore its own outline. `cramped` also counts the window as a clip where no scroll of the page brings a mark's room into view, which is what the full-height question needed. The CSS ring on `[data-lf-obligation]`, lf-ask's pseudo-element ring and its full-height query are gone; the decision draws no focus ring of its own beside the location ring, which is its focus cue. A control inside the decision still stands the ring down with `--lf-obligation-ring: none`, which the painter and the landing read. Behavior changes, which tests read: - The Alt aim and a comment's mark round a field stand on its edge, where its focus ring stands; they stood 3px out. - The location ring round a question in a box that clips with no room round it stands inside the question; drawn as its outline, it kept only a line across the top. - A boxless decision wears one location ring round all the boxes it shows through, where each box wore its own. - A Tab onto a control inside an lf-ask now scrolls the ask's ring into view as it did for other decisions; the ask's ring was on a pseudo-element, so the landing read the ask as having none. - A mark round a target within its room of the page's own edge, where no scroll shows that room, stands inside the target rather than cut by the window. Tests: `test_the_aim_round_a_field_stands_on_its_edge_where_its_ring_does` and `test_the_ring_round_a_clipped_question_stands_inside_it` are new, and both fail with the fix reverted. The location ring tests read the overlay's box (`LOCATION_RING`) rather than an outline on the decision, and wait for the frame a focus move repaints in before reading a ring a row stood down. The ring sweep (focus_rings.js) counts the location ring as the focus cue of a decision holding focus.
# Conflicts: # browser/base.css # browser/runtime/annotation-overlay/annotation-chrome.css # browser/runtime/chrome.css # browser/runtime/target-paint-geometry.js # browser/styles/components/controls.css # browser/styles/components/integration.css # browser/styles/components/reading.css # browser/styles/components/response.css # browser/styles/components/surfaces.css # browser/styles/components/webawesome.css # browser/styles/floating-panel.css # dist/kernel/kernel.json # dist/kernel/runtime/bundle-box-motion.js # packages/default/styles/ask.css # packages/default/styles/board.css # packages/default/styles/draft.css # packages/default/styles/gloss.css # packages/default/styles/options.css # packages/default/styles/tabs.css # packages/default/styles/toc.css # packages/diff/widget-shadow.css # packages/file-editor/widget-shadow.css # packages/file-tree/widget-shadow.css # packages/playwright/defaults.css # skills/leaf/references/package-themes.md # tests/model/test_interact_layer.py
The decision's own focus ring stood down by a rule in the chrome's sheet, keyed on the decision wearing `[data-lf-obligation]`, whether or not the location ring was drawn over it. Two cases went wrong (found by review, both reproduced in a probe): - A decision inside an x-shadow widget's stage drew both, its focus ring at a control's gap and the location ring at a region's, since the chrome's sheet doesn't reach a stage. - A decision inside a modal dialog lost both: the dialog's top layer covers the chrome's paint, and the rule still took the decision's own ring away. The painter now marks each box it draws the ring round with `lf-projected-location`, as the annotation painter marks a box whose focus it projects, and the focus floor in surfaces.css, which every stage adopts, stands down on that class. The painter draws over a decision only from a layer that paints above it, so a decision in a modal keeps its own focus ring. It also reads a control's stand-down (`--lf-obligation-ring: none`) each time it draws, so a layout change or scroll after the stand-down changes takes it up. The ring sweep (focus_rings.js) reads the class as the sign that the location ring carries a decision's focus, and the page reading for unchanged markup drops it with the other runtime classes.
…nt selectors The sweep compared each ring's rule with a selector the stylesheets no longer write: the floor now also stands down on `.lf-projected-location`, and #4724 renamed a tab set's rendered state from `.lf-rendered` to `[data-lf-views]` while the tab panel case kept the old name.
# Conflicts: # browser/styles/components/controls.css # packages/default/styles/options.css
# Conflicts: # browser/runtime/landing-scroll.js # browser/runtime/target-paint-geometry.js # browser/styles/components/controls.css # browser/styles/floating-panel.css # dist/kernel/kernel.json # dist/kernel/leaf.js # dist/kernel/runtime/bundle-annotation-overlay.js # dist/kernel/runtime/bundle-box-motion.js # dist/kernel/runtime/bundle-copy-control.js
# Conflicts: # browser/runtime/landing-scroll.js # dist/kernel/kernel.json # dist/kernel/leaf.js # dist/kernel/runtime/bundle-annotation-overlay.js # dist/kernel/runtime/bundle-box-motion.js # dist/kernel/runtime/bundle-copy-control.js # dist/kernel/runtime/bundle-page-layout.js
The landing (landing-scroll.js) read whether a decision's location ring stood down from target-paint.js, and that import moved runtime/media.js out of the production bundle's shared chunks: the published leaf.js then imported `./runtime/media.js` directly, which `collapses the production runtime's static modules` (worker/test/bundle-runtime.test.ts) refuses. The reader now lives in page-paint.js, the import-free vocabulary of the runtime's page paint, beside the `obligation` attribute the landing also reads from there. Inlining the read was enough to make the test pass again, which confirmed the import was the cause.
# Conflicts: # browser/styles/components/reading.css # dist/kernel/kernel.json
A mark over a target (the Alt aim, a comment's brackets, the margin trace, the location ring) stood wholly one band inside the target whenever any one side's clip left less than the target's gap and band outside it. A question filling a full-height workspace meets the window's foot, so its location ring stood inside on every side, on the first letter of its heading, though the window left 12px beside it and 6px above. Each side now stands at the target's stated gap, or as far out as that side's clip leaves room for the band, and at most one band inside the edge. The mark is one outline at the nearest side's gap, round a box that reaches past the target by how much farther out each other side stands; a shaped (SVG) mark keeps the target's box, since its stroke is drawn in the target's coordinates. A side within a pixel of its clip counts as flush, since clip bands are measured in whole pixels: the bottom of a question flush with an unpadded frame read 0.19px past it, as cut, and its band was cut away. Behaviour that changed: the workspace question's ring now stands 6px clear at the sides, 4px above and inside only along the foot; a question in an unpadded clipping frame keeps its ring above the heading where the frame has room there. Where a frame clips at the question's own edge and its words start at that edge, the ring still stands on them: there is no room on either side of the edge. test_the_ring_round_a_question_stands_clear_of_its_words now also holds the workspace ring clear of the heading; the shadow-stage aim test reads the box's left edge and foot, which its scroll leaves where they were, instead of its top.
The previous commit let each side of an overlay mark stand as far out as its own clip allowed. A box that clips its target can hold it among rows packed edge to edge, as a list in a scroller does: Alt-aiming the middle of three margin-0 paragraphs in an `overflow: clip` box drew the brackets 6px above and below the row, over the neighbouring rows' first letters (Codex review). Before, the whole mark stood inside because the box met the row's sides. Only the window now leaves sides independent. Where a box that clips the target leaves any side short, the mark stands one band inside on every side, as before. Where only the window does, as at the foot of a question filling a full-height workspace, that side alone stands inside, as far out as the window leaves room, and the others stand where they would anywhere on the page. The workspace ring stays clear of the heading; a question in an unpadded clipping frame keeps its ring inside on every side again. The shadow-stage aim test is back as it was, and a new test holds the aim on a packed row inside the row.
# Conflicts: # browser/leaf.js # dist/kernel/kernel.json # dist/kernel/leaf.js # dist/kernel/runtime/bundle-box-motion.js # dist/kernel/runtime/bundle-portable.js
# Conflicts: # browser/styles/components/reading.css # dist/kernel/kernel.json # dist/kernel/runtime/bundle-portable.js
The location ring is page paint now, drawn in the chrome at the page paint's level, and margin entries at rest stand below that paint. The entry for the obligation the user stands in shows its question at rest, beside the ring, so where the label reached over the decision's edge the ring ran through its words: on ideas-to-implement after `m`, "Which ideas should we implement?" read "we | mplement". Drawn as the decision's own outline, the ring had stood under every chrome surface. That entry's cluster now rises above page paint as the one under pointer or focus does, and a pane lane, cut or carrier holding it rises with it.
leaf-agent
approved these changes
Nov 3, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 3, 2026
Main's changes kept, with the branch's intent applied on top: - #5116 draws the location ring as a mark over the decision and states where a box's marks stand in `--lf-ring-at`. The proxy ring stands on the same model: both are the focus ring drawn as a mark over what it rings, sharing one CSS rule for their box, their whole band and a drawn part's contour ink, and both stand where the ringed thing's `--lf-ring-at` says, through `standOver`. The location painter joins the trace painters in target-paint.js, and a layout change or scroll relocates it before moving the traces. On me's cards state their inset ring as `--lf-ring-at`; the ring sweep counts the proxy ring as the focus cue it carries. - #5113's narrower margin-label rule is kept on the margin face's class.
max-sixty
added a commit
that referenced
this pull request
Nov 3, 2026
…ng (#5224) Corrects the reason a comment gives for raising the margin marker of the decision the user stands in above the location ring. No behaviour changes. #5116 raised that marker because its label showed at rest beside the ring, and the ring ran through the label's words. #5113, which landed just before #5116, stopped showing that label at rest, so the comment in `annotation-chrome.css` gave a reason that no longer holds. The raise still matters for the marker itself: where a decision reaches the margin column, the marker stands across the ring. After `m` on `pr-walkthrough` at 1280x800, the approval decision's ring runs at x 1218–1220 and its marker spans 1216–1242. The comment now says that, and the note on the raised z-index level in `tokens.css` names this case too. > _This was written by Claude Code on behalf of max-sixty_
This was referenced Nov 5, 2026
Closed
leaf-agent
added a commit
that referenced
this pull request
Nov 6, 2026
…he decision draws (#5579) #5116 made the location ring the decision's own outline, drawn while it wears `data-lf-projected-location` (`target-paint.js`, `paintLocation`), and removed lf-ask's ring rules. `test_the_current_obligation_marks_its_selected_margin_reading` still read the ring from lf-ask's `::after` outline, which now falls back to the text colour (`rgb(28, 27, 24)`) while the margin marker keeps the accent (`rgb(47, 84, 128)`). The test now reads the ring through the shared `LOCATION_RING` reader in `render_cases_interaction.py`, asserts it is drawn, and checks the selected marker matches its colour. This changes only the test's reading. #5116's intent, one ring drawn by the core painter, is kept, and nothing users see moves: the ring and the selected marker were the same accent before and after #5116. The test fails on `cb49ffb36` with the issue's assertion and passes on this branch (`uv run pytest --run-main` on the node id). Closes #5492 — automated triage Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 15, 2026
…it (#6001) After a sent comment on `leaf-dev bench`'s 1,024-section asks page, the readings the page publishes keep every record the send left alone as the object it was, so every reader that keeps what it read by identity skips them. The publication that takes in the server's reading of the send drops from a median 16.9 ms to 9.8 at 1,024 sections, and the publications from the press until that reading is taken in from 20.5 ms to 14.6 (timed in the page; an independent profile of that window found a 2–6 ms saving, Measurements). Sharing an event log grown by one event also gets cheaper than on main. The other costs #5899 left are measured below; two of them no longer hold on current main. ## Why Commenting on a question hands its obligation to the agent, so the obligation leaves `readObligations().user`. `share` (framework/snapshot.js) compared each item of a list with the item at the same index of the prior list. Each record after the one that left was compared with its neighbour's, found different, and published as a new object, so every reader that keeps a reading by identity (kept.js) read all 1,023 of them again. Found by keeping the annotation inventory's entries by their records: the collection after the server's reading remade all 1,024 entries, though only one obligation had changed. ## Change `share` names a list's records by the rule the server's patch protocol names a list's items by (`src/leaf/served_state/tail.py`, `_named`): each record's string `id`, else its event's `id`, and only where no two records of the list share a name. Where both lists are named by one rule, a record whose name differs from the one at its index is compared with the prior list's record of its name. A list whose records go by no name, or share one, is compared place by place, as on main. Deep equality still decides whether a subtree is replaced, so only the choice of which prior record each new one is compared with changes. While every item stands for the prior list's item at its index, by identity or by name, an item past the prior list's end is returned without being compared, so sharing a log grown by an event builds no index of the log. Lines of mechanism, counting code and leaving out comments, blank lines and tests: 36 added and 8 removed, all in snapshot.js. 20 are the helpers that name a list's records and pair them, and 16 replace the 8-line loop that pairs each item with a prior one. ## Measurements Timed in the page with `performance.now()` around each outermost call of `publish` (framework/application.js), unprofiled, at 1,024 sections. No publication ran nested inside another during these sends (counted), so each is counted once. Main and this branch alternated, two runs of five sends each, with the host under heavy load (load average 66–122). Each cell is the median of the ten sends, with the lowest and highest in brackets: | Publications | main (ms) | this branch (ms) | | --- | --- | --- | | The press's own | 3.2 [2.7–4.7] | 2.7 [2.5–4.5] | | The one that takes in the server's reading | 16.9 [15.1–21.5] | 9.8 [8.5–11.6] | | From the press until the reading is taken in, summed | 20.5 [18.4–27.9] | 14.6 [13.1–20.0] | | Every one of the send's, until the page settles | 23.6 [20.3–30.1] | 16.5 [13.6–22.3] | An independent review profiled every publication from the press until the page took in the reading, the third row's window, with V8's sampling profiler, two runs each, on main and on this PR's first commit: a send 17.0 and 16.4 ms against 14.8 and 12.2, a Resolve 18.1 and 14.4 against 12.7 and 11.6, a pick 28.4 and 24.0 against 23.1 and 20.6. That is 2–6 ms over the window, against the timers' 6 ms for a send; the two differ in method, in host load and in the branch's commit. Sharing a list alone, in Node, the median of 15 interleaved trials (load average about 31), in ms: | List | main | first commit | this branch | | --- | ---: | ---: | ---: | | 1,000 events, grown by one in place | 0.040 | 0.071 | 0.017 | | 4,000 events, grown by one in place | 0.149 | 0.231 | 0.027 | | 16,000 events, grown by one in place | 0.659 | 1.330 | 0.106 | | 16,000 new records, the first one gone | 4.8 | 6.4 | 7.3 | On the last row this branch keeps 15,999 records' identity, where main keeps none; the extra time is naming both lists. A list of fresh records grown by one costs the same as on main (4.9 and 5.1 ms at 16,000). Chromium, `uv run leaf-dev bench asks --sizes 64,256,1024 --input comment --rounds 5 --base 7ec8751`, on this PR's first commit against main, both arms interleaved, load average 5.2 at the start and 17.9 at the end. CPU is the send's main-thread time from the press until 400 ms after its reading shows, less the page's idle time. Each cell is the median of five rounds, with the lowest and highest in brackets. | Sections | CPU, main → branch (ms) | Shown, main → branch (ms) | | ---: | --- | --- | | 64 | 79.5 [73.3–82.6] → 78.0 [70.7–86.5] | 96.7 [87.6–113.0] → 97.0 [88.2–102.6] | | 256 | 90.5 [88.1–106.6] → 93.5 [86.1–106.2] | 113.2 [112.6–126.7] → 110.5 [109.5–113.1] | | 1,024 | 178.1 [160.1–204.3] → 167.1 [158.0–219.2] | 185.4 [171.7–204.9] → 187.5 [166.5–196.7] | The rounds' spread at 1,024 sections is wider than the saving, so the CPU column shows the direction and not the size. The paint pass's long-frame attribution put applying the server's reading (`paintedOwed`) at 39 ms of script per window on main and 15 on this branch, and 42 and 12 in an earlier three-round run. It counts only frames of 50 ms or more, so a frame that drops just under that line leaves the count; it shows that the reading's frames got shorter, not by how much. Paint, the frame that draws the sent message, moves within the rounds' spread: the change is in the reading's application, after that frame. ## The costs #5899 listed, on current main Timed in the page on main (`7ec8751318`) with `performance.now()` around each function, unprofiled, median of five sends, before the frame that draws the message: | Step | 64 sections | 1,024 sections | | --- | ---: | ---: | | Margin pass (`layoutMarginRows`) | 1.4 ms | 9.3 ms | | Annotation inventory (`collectEntries`) | 0.6 ms | 6.1 ms | | Reading place (`recordPlaces`; its `lineAnchor` 0.0 and 0.1 ms) | 1.7 ms | 3.1 ms | | Forced style in the press's task (trace, 22 recalcs) | 15.5 ms | 17.9 ms | - **Margin pass.** Spread over every row. Timed by phase over a send's two passes at 1,024 sections, 15.9 ms in all: seating itself is 2.5 ms, and the rest is finding held rows, carrying each row's record, writing each seat, the new pin's cover reading every child of `main`, and the layout event's listeners. Seating only the rows a new row can reach would cut the 2.5 ms and leave the rest; making the whole pass follow the change is a restructure of `layoutMountedRows`, judged not worth it for about 2–6% of a send's CPU. - **Annotation inventory.** I built keeping each item and entry by the records and label it was made from (kept.js), with the kept entries left in their order and only the remade ones placed among them. It cut a collection from 6.1 to 4.5 ms, but an interleaved five-round A/B against this branch read the send's CPU at 1,024 sections as 171.8 ms without it and 170.6 with it, for about 75 lines, so it is not here. The cost is visiting every obligation and resolving its target (`getElementById`, `targetPath`, the label, the group map), about 4.5 µs each; making entries is about 0.6 ms of it. Skipping records whose list didn't change would have to resolve targets by id and read labels from attributes the page's reading doesn't hear, and `an entry stays one object until what it is made from changes` holds that an `aria-label` change shows at the next collection. - **Reading place text search.** Gone on current main (#5875 changed that search): `lineAnchor` takes 0.1 ms. `capturePlace` still grows, 0.7 → 2.2 ms, from visiting every text block to find those on screen (`textBlocks`, `renderedBlocks`). - **Forced style.** It does not grow with the page, and no rule restyles more than the card: each of the 22 recalcs touches at most 97 elements, all in the thread card, the composer, one margin row or their ancestors (invalidation tracking in an unprofiled trace). `--lf-ring-at` is registered as non-inheriting (base.css, since #5116), so focus rules setting it restyle only the box they match. The 16–18 ms is the number of places a script reads style or layout after a write in the press's task: `scrollToEnd` in `showArrival`, `motionTime` reading a token twice, `focusBox`, `cardMinimum`. That is a question of the card's build order rather than of CSS. The margin projection's per-row work grows too: `renderNow` 2.1 → 6.3 ms, of which `readSpokenPositions` (each target's place down the page) is 2.6 and `nameMarkers` 1.8, and the Tab stop (`syncRoving`) 0.3 → 2.5. ## One record of what changed? The brief asked whether one shared record of what changed would replace `readingElements` (#5872), the `derive` steps' memo (#5899), `Footprints` (#5866) and `drawnElements` (#5871). It would not: - `drawnElements` keeps nothing between calls. It walks what the browser draws, asking `checkVisibility`, and skips the rest. - `Footprints` is an index of seats built in each margin pass and dropped at its end. The margin's record across passes is `seatings`, which the page's observers drop: a resize, a mutation, a scroll inside a box, a transition's end. - `readingElements` and the `derive` memo are records of change for different inputs. The memo compares immutable state by identity, which needs no observer because publication shares every unchanged subtree. `readingElements` keeps its answers on pieces of the page's reading, which the reading's mutation observer drops. These already compose. The page's reading exposes its state as an identity token, `pageReadingVersion`, which an identity-keyed reading takes as one more input, as `gatherConversations` (thread/placement.js) and `prepareVisualActions` (anchor-controls.js) do. Geometry is a third kind of change, reported by resize observers, scroll events and transition ends rather than by a mutation, so folding `seatings` into the same record would move it only partway. What made a cost like these hard to remove was a fault in the identity record itself, which this fixes: positional sharing broke identity for every record after one that moved, and each identity-keyed reader paid for it. ## Checked - `pnpm run test:runtime` (970 pass) and `pnpm run check`; pre-commit on both files. - The new test, `sharing a list keeps each record equal to the prior one of its name` (framework-snapshot.test.mjs), fails on main and on this PR's first commit: records lost, gained mid-list and reordered as new objects, records named by their events, a list of unnamed records, and two records sharing an id, which stay two objects. - The review's fuzz of 20,000 lists passes: every result deep-equals the new list, reuses a prior subtree only where it is equal, and in no list do two places become one object (104 to 108 lists did on the first commit). - 41 browser tests, all passing on the final head, selected with `-k` from `widgets/test_obligations.py`, `threads/test_resolving.py`, `test_render_semantic_news.py`, `margin/test_page_map.py`, `margin/test_entries.py`, `test_render_options.py`, `threads/test_panel_list.py`, `projection/test_widget_actions.py`, `projection/test_thread_replies.py` and `projection/test_live_versions.py`: obligations answered, cleared and walked; threads resolved and reopened; agent news; Page Map reconciliation; margin rows leaving; undo and refused picks; live revisions. ## Not checked - Firefox and WebKit. - The broad suite and the main-push browser tier. - Which lists besides the user's obligations shift in a send's reading; the publication time is measured, not attributed list by list. ## Calls Max may reverse - The annotation inventory's kept entries are left out, measured as above. - Where the two lists are named by different rules, `share` compares records place by place, where the server's patch treats every item as new. Both are correct; place by place can still find an equal record. - A long list of new records that loses its first one costs more than on main (the table above), in exchange for keeping every record's identity. Part of #5194.
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.
Every box now states once, as
--lf-ring-at, where its marks stand. Its keyboard focus ring, the Alt aim, a comment's brackets, the margin trace and the location ring all read that one statement. The location ring is now drawn by the core painter as a mark over the decision, so it gets the overlay's handling of a box that clips the decision.Follows #4773, which made each box state its marks' place as one of four kinds. Two marks still disagreed after it:
outline-offset. A field states its edge,0, which is alsooutline-offset's initial value, so the overlay read it as nothing stated and stood the Alt aim 3px outside a field whose focus ring replaces its border.!importantto stand inside instead.What changed for the user
How it works
base.css, "Where it stands";surfaces.css).--lf-ring-atis a registered property with no initial value that doesn't inherit, so a box that states nothing reads as stating nothing. A zero-specificity rule sets every box'soutline-offsetfrom it, so the keyboard rings stand where they did. The focus floor falls back to a control's gap. The 38 box statements across the kernel and packages move fromoutline-offsetto--lf-ring-at. A pseudo-element or::partthat draws a box's ring keeps statingoutline-offset.test_every_ring_stands_at_a_kind_of_boxholds both to the four kinds.target-paint.js,paintLocation).markHeredraws it round the decision the user stands in, throughstandOverlike every other mark, and layout changes and scrolls move it as they move the target trace. It is also the decision's focus ring: each box it is drawn round wearslf-projected-location, and the focus floor, which every shadow stage adopts, stands down there. It paints over a decision only from a layer above it, so a decision in a modal dialog keeps its own focus ring. A control inside the decision stands it down with--lf-obligation-ring: none, now read frompage-paint.js, on every draw. The CSS ring on[data-lf-obligation]and lf-ask's ring rules are gone.annotation-chrome.css). The ring is page paint now, and margin entries at rest stand below page paint. The entry for the obligation the user stands in shows its question at rest, so where that label reached over the decision's edge the ring ran through its words. That entry's cluster now rises above page paint, as the one under pointer or focus already did.target-paint-geometry.js,sideGaps). The window counts as a clip on a side no scroll of the page can bring into view (pageExtent). Where a box that clips the target leaves any side short of room, the mark stands one band inside on every side, since such a box can hold rows edge to edge. Where only the window leaves a side short, that side alone stands inside, as far out as the window allows, and the others stand where they would anywhere on the page. A side within a pixel of its clip counts as flush, since clip bands are measured in whole pixels.Trade-off
A page with no side gutter whose rows are packed edge to edge, touching the window's edge, now gets brackets above and below a row over its neighbours. The old rule put the whole mark inside there because the window happened to meet the row. The same rows one pixel from the edge got the overlap before and after this change. Reserving the ring's room in the workspace layout instead would avoid the window rule, at the cost of a strip at the foot of every workspace page.
Tests
test_the_aim_round_a_field_stands_on_its_edge_where_its_ring_does,test_the_ring_round_a_clipped_question_stands_inside_it, andtest_the_aim_on_a_row_a_clip_packs_stays_inside_the_row. Each fails on the code before the change it covers.test_the_ring_round_a_question_stands_clear_of_its_wordsalso holds the workspace question's ring clear of its heading.LOCATION_RING) instead of an outline on the decision, and wait for the repaint frame before reading a ring a control stood down.focus_rings.js) counts the location ring as the focus cue of a decision holding focus.pnpm run check, pre-commit, the runtime tests, the ring and Alt-aim browser tests, and Firefox probes of a field, a clipped question, a full-height workspace, a modal and a shadow stage.leaf-dev stillsover 37 states against main: the workspace question's ring moves out from its heading (playground-choice, playground-text); every other state's pixels match within antialiasing, and its computed styles differ only in the declarations that now state each place.test_each_sampled_focus_ring_is_shown_whole_in_its_surfacefails on main 65ac1a0 with the same two diagnostics as here (the On me chip not taking focus after its key, and the gallery's contents link never showing), so it blocks nothing; main's daily reportcifailing onmain(schedule) #4225 tracks it.