Repository navigation
Choose one of a few views with Web Awesome's radio group, loaded with the screenshot - #5393
Conversation
The Playwright recording timeline and lf-timeline place their ticks with the shared `time-axis.js` (#3973), but each drew and measured the ruler itself. `packages/playwright/defaults.css` and `packages/timeline/defaults.css` repeated the tick, major tick, flipped last label and gridline rules. Both widgets restated `EDGE` and `LABEL_CHROME`, the trace restated the private `TICK_SPACING`, `LABEL_GAP` was 6 in the trace and 8 in lf-timeline, the last tick label flipped within 44px of the axis's end in one and 36px in the other, and the trace, lf-timeline and `time-axis.js` each wrote a time in seconds. One home for each now: - `.lf-axis-ruler` and `.lf-axis-tick` in `controls.css`, which shadow trees carry too, draw the ruler: each tick at its fraction of the axis (`--lf-axis-at`) inside the drawing's edge (`--lf-axis-edge`), with each major tick's line continuing down the drawing. The drawing clips that line at its foot: the trace's track already did, and lf-timeline's chart now does, which deletes its separate grid layer and its gridline elements. - `time-axis.js` exports `AXIS_EDGE`, `AXIS_TICK_SPACING`, `AXIS_LABEL_CHROME` and `AXIS_LABEL_GAP`, and `axisTicks` marks the major tick whose label flips (`flip`). - `seconds(ms, digits)` writes every time. Without `digits` it uses as few decimals as show the time to the millisecond, as lf-timeline did; the trace asks for three, so its readout keeps its width; a tick takes the decimals its step needs. No time reads differently. module-authoring.md, "Time axes", documents the class, the custom properties and the exports for package authors. Visible changes, from `leaf-dev stills` in light and dark: - The trace's gridlines take lf-timeline's dotted `--rule` line in place of a dashed line at 70% of `--border-2`. In both widgets the line now reads fainter than the lane rules; the trace's dashed line read as heavy as them. - Labels keep 8px apart in both widgets, where the trace kept 6px, so a crowded trace label gives up 2px of room to its neighbour. - The last tick label flips within 44px of the axis's end in both, where lf-timeline flipped at 36px, so a three-decimal time such as "0.125 s" never runs past the end. No state the stills cover changed by it. Tests now find a major tick by `.lf-axis-tick[data-lf-major]`.
A focused box whose own outline something covers or cuts, such as a scroller whose positioned lines paint over its outline, wears its ring on a later box laid over it. Four places drew that box with the same block (`content: ""`, `position: absolute`, `pointer-events: none`, the ring inset by `--focus-ring-inset`, and `--lf-wears-ring: 1` on the box wearing it), and lf-diff drew it on an element of its own: - a pane's body, on the pane (`base.css`), in the body's grid cell; - lf-tabs' and lf-parts' open panel, on the set (`tabs.css`), by anchor; - lf-text-document's `pre`, on its listing (`text-document.css`); - lf-trace's image canvas, on its own `::after` (`playwright/defaults.css`); - lf-diff's source, on a `.lf-diff-frame` span after it, which `lf-diff.js` created for every file (`diff/widget-shadow.css`). `surfaces.css` now holds one rule beside the shared band. A ring frame, the class `lf-ring-frame` or a pane for its body, draws the band on its `::after` while it, or a child of it other than its header or footer, holds visible focus; the child draws none, and the frame declares `--lf-wears-ring`. The ring's box stands at no weight, so each frame keeps only where it stands and how high it stacks: the pane its grid cell, the tab set its anchor, the canvas its z-index of 3. The tab set, the listing, the canvas and the diff's `pre` wear the class, so the diff no longer creates a frame element, and the focus-ring test script no longer looks for one. package-themes.md tells package authors about the class. lf-file-editor keeps its own copy. CodeMirror puts its editable content inside its own scroller, so the nearest box that holds still is the content's grandparent, and the shared rule rings a frame's own child: reaching a grandchild would ring a pane or a tab set for any control focused inside it. lf-diff used a sibling because, its comment said, Firefox did not re-evaluate a parent's `:has()` when focus moved into a source row. In Playwright's Firefox the shared rule's ring followed focus from a diff's source into a row a hunk step landed on and back, as it did in a reduced case in light DOM and in a shadow root. The rings look as they did. In Chromium, `leaf-dev stills` shows `sort-pane`, `walkthrough-diff-source-keyboard` and the new `boxed-tab-panel-keyboard`, `captured-source-keyboard` and `trace-image-keyboard` states pixel for pixel as before. In Firefox the pane, tab panel and listing are identical too, and the diff's ring has the same pixels, but a keyboard landing on a diff's source stands 1px lower: the `pre` now declares `--lf-wears-ring`, so the landing keeps the ring's room on the frame, whose top border the source sits under. Firefox's `trace-image-keyboard` lands at a different scroll from run to run on either arm, so its stills don't compare; a probe of both arms read the same scroll and the same ring.
…dio group Choosing one of a few views had two mechanisms. lf-shot's views (Slider, Pair, Pixels) and lf-dial's depths (Skim, Read, Everything) were word toggles with `aria-pressed` in a `role="group"`: lf-shot's had no arrow keys, and lf-dial stepped with arrows through commands of its own (`dial.less`, `dial.more`, from `rowArrows`). lf-trace's recording scope and lf-trace-compare's recordings were Web Awesome's `wa-radio-group`, with radio semantics and a radio group's arrows. The radio group is now the one home. lf-shot and lf-dial draw their choice as a `wa-radio-group` of `appearance="button"` radios, as lf-trace does, and lf-dial's arrow commands and pressed state are deleted. The look lf-trace gave its buttons, each a face of its own a gap from the next and a long name wrapping inside it, moves from `packages/playwright/defaults.css` to `webawesome.css`, so every such group takes it; lf-trace keeps only its 44px control size. The radios' words take Leaf's interface type (`--font-ui`), the 14px Web Awesome's small size also gives at the default density, so the dial's room before upgrade can name a Leaf font. lf-shot's Image scale menu keeps its toggles, the form lf-trace's own scale menu has. Each of these radios is offered as a press (`offer`'s `pressable`), which Go-to's hints reach and click. The toggles were presses, so without it Go-to lost the shot's views and the dial's depths; lf-trace's scopes and lf-trace-compare's recordings gain it. The radios need Web Awesome before the toolbar can draw, so lf-shot imports it with its module, as lf-trace, lf-diff and now lf-dial do, rather than after presentation. Drawn before Web Awesome defined them, the radios were bare words, and their faces arriving moved Outline and Image options beside them. On release-notes, whose only Web Awesome control is a shot, that puts one more request and 107 KB of JavaScript before the page presents (`leaf-dev probe --base`). The slider's divider is now present at the first drawing, so the test of the shot while its divider loaded becomes a test that the divider keeps its place across views. Visible and keyboard changes: - The views and depths take lf-trace's radio face: a 1em inset and an 8px gap where the toggles had 10px and 4px, in regular weight rather than the toggles' medium. The dial grows from 216px to 245px wide; its room before upgrade now adds up the radios' own tokens and matches the upgraded box. - On a page at working density, every button radio, lf-trace's included, sets its words at that density's 12.5px rather than Web Awesome's 14px. - Tab reaches a group once, at its chosen view, and the arrows choose the next, where Tab visited each toggle and lf-shot took no arrows. - Every such radio wears Leaf's press wash under the pointer, beside Web Awesome's own hover, as the toggles wore it. - Assistive technology hears a radio group with a checked radio in place of pressed buttons. `leaf-dev stills` gains `screenshot-views-keyboard` and `dial-keyboard`, each a chosen view holding keyboard focus.
… after the shot presents Candidate B for the view choosers, on top of the radio-group commit (A). The chooser keeps its one mechanism, Web Awesome's radio group with its semantics and arrow keys, but every button radio, lf-trace's and lf-trace-compare's included, is offered in the word role (`actionClass`), so it wears the word face and a toggle's selected face from controls.css: plain words in the muted ink, and only the chosen one framed in the accent on the chip ground. `webawesome.css` keeps only the group's row (the toggles' 4px gap, wrapping), the choice type and the radio's centring; the framed-button look A moved there is gone. Since the word face, not Web Awesome, sizes each radio, a group stands in its final row before Web Awesome defines it (`wa-radio-group:not(:defined)`), so lf-shot loads Web Awesome after presentation again, as it did before A. A probe that held Web Awesome on release-notes read every toolbar control's box before and after it arrived, identical in Chromium and Firefox, with no layout shift. The views take a press once Web Awesome is defined, right after presentation; the toggles took one at once. The test of the shot while its divider loads comes back, now asserting that no control moves. Startup on release-notes, before the page presents (`leaf-dev probe --base`): base 287 JS requests and 4,694,128 JS bytes; A 288 and 4,801,566; B 287 and 4,695,118. The dial's room before upgrade returns to the toggles' sum (the word face's padding and border, the row's frame and two 4px gaps), and the dial is 216px wide again, as in base. lf-dial still loads Web Awesome with its module.
…hared rule `.lf-ring-frame` meant two things: a box that wears its focused child's ring (the tab set, the text listing, the diff's `pre`, a pane) and a box that wears its own ring on an overlay (the trace canvas). Every lf-tabs and lf-parts carries the class, so a set that held focus itself, as one a fragment lands on does, drew the landing's ring around the set and an inset ring over its open panel. Each meaning now has its own class in the shared rule: `.lf-ring-frame` rings the child that holds focus, and `.lf-ring-overlay` rings the box's own focus. The rule sets no `z-index`, so each box says how high its ring stacks: the pane, tab set and listing keep 1, the canvas 3, and a page thread none, which lets a page thread take the overlay class and drop its own copy of the ring. package-themes.md says that either box must be positioned. The floating panel's view keeps its own ring: its stage rings a view only where a key came to it and never a thread's view (the user's choice of 3 November), which the frame rule, ringing whichever child holds focus, can't say without an exception.
…ing on it from one rule A major tick drew its gridline as a 2000px `::after` that the drawing clipped at its foot, so a timeline taller than that, such as one of sixty lanes (2662px), showed lines that stopped partway down. Each widget now draws its gridlines as it draws its playhead: a layer (`.lf-axis-grid`) over the lanes, from the ruler's foot to the drawing's, holding a `.lf-axis-gridline` at each major tick's time. lf-timeline's chart no longer clips its overflow for them. The placement "edge + fraction × (100% − 2 × edge)" was written about seven times across three sheets, with four names for the fraction (`--lf-axis-at`, `--lf-timeline-at`, `--t` and `--lf-trace-time`). One rule in controls.css now places every tick, gridline, mark, label and playhead on the axis, by `--lf-axis-at`; a widget's own marks join it with the class `lf-on-axis`. The trace sets its playhead's time on the playhead rather than on the track. Where a drawing sets no `--lf-axis-edge`, the axis has no inset rather than every tick standing at the left. The gridline is now dotted in the contour ink (`--border-2`): 1.47:1 against the ground in light and 1.71:1 in dark, where lf-timeline's dotted `--rule` line gave 1.22:1 and 1.37:1, and the trace's old dashed line 1.31:1 and 1.41:1. Dotted, it still reads under a lane's solid rule. `seconds(ms)` counted its decimals on the unrounded time, so `at="1000.5"` read "1.000 s" and 1500.5 "1.500 s". It now rounds to the millisecond first and writes as few decimals as show that: "1 s" and "1.5 s", as lf-timeline wrote them before. module-authoring.md, "Time axes", describes the placement, the grid layer and the edge's default.
`#applyZoom` drew the marks, the ruler and (since the gridline layer) the grid for the scroll position the change was leaving, and each caller then scrolled to the window the new zoom or width shows. `#resized` also drew the ruler again in the same task. Where that second drawing's window was the one the grid showed before the task, the first had taken its lines out and the second put equal ones back, which the write watch fails as an unchanged write (`test_trace_zoom_and_pan_stay_within_the_fitted_recording`, which resizes the page back and forth). Keying the grid's lines differently can't help, since the lines really are taken out in between. `#applyZoom` now takes the window's new left edge, scrolls there first and then draws once (`#layoutLabels` → `#draw`, which draws the ruler and grid); every caller passes the edge it used to scroll to afterwards.
lf-shot now imports Web Awesome with its own module, as lf-dial, lf-trace and lf-diff already do. Its view radios and its divider are defined before the shot draws, so a press on Pair or Pixels the moment the page shows changes the view, and the divider is in place from the shot's first drawing. Loading Web Awesome after presentation kept its bundle off the startup path, but for as long as the bundle took to arrive the radios ignored a press and a clipped frame stood where the divider would be. Pixels was also disabled until the difference reading, which runs after presentation, came back. The view needs only the two images, since its mask is computed on selection, so it is now enabled once both are drawn, before the page shows. Deleted with the late load: the deferred import and the refit it triggered, the check that waited for wa-comparison to be defined, the clipped frame that stood in for the divider while it loaded (with its print reset and the grid placement that stacked the frames), and webawesome.css's layout for a radio group Web Awesome had not defined. Startup on release-notes against main (3993b3a), before the page first shows the server's state: 297 requests and 5,614,475 bytes, of them 288 JS requests and 4,825,568 JS bytes, against 296, 5,507,002, 287 and 4,717,805. The added request and 107,763 JS bytes are Web Awesome's bundle. The screenshot and dial stills are pixel-identical to main. Tests: the test that held Web Awesome's bundle to check the toolbar stood still while it loaded is replaced by one that presses Pixels the moment the page shows and reads the view the next frame draws. It fails against the late load and against Pixels waiting for the reading, and keeps the earlier check that the divider survives a trip to Pixels. The direct-divider journey no longer asserts that Web Awesome is requested after presentation.
leaf-agent
left a comment
There was a problem hiding this comment.
lf-dial now imports Web Awesome statically (import "/vendor/webawesome.esm.js" in packages/detail/widgets/lf-dial.js), but on main it didn't. Only lf-trace, lf-diff and lf-shot's late import() loaded it. The description says lf-shot imports Web Awesome "as lf-dial, lf-trace and lf-diff already do", and its startup figures cover only release-notes. So a page whose only Web Awesome control is the dial also gains the bundle's request and its ~108 KB before the page first shows the server's state. examples/developer/detail.html is one: lf-ask, lf-dial and lf-options are its only widgets.
This may be the same trade the maintainer chose for the screenshot, but the description is about to become main's commit message, and AGENTS.md ("Working on the repository") asks that a change adding work on the startup path say what the user gains and why it can't wait. Before, the dial's native buttons took the first press with no bundle at all. Correct the "already do" claim, and either add a leaf-dev probe --base reading for detail with the reason the dial pays the cost, or say that it's accepted.
The view radios took the shared group's gap and wrap at every width, where the plain toggles gave up their gap below 450px and never wrapped. On CI's 390px window, whose root scrollbar and wider system font leave 327px for the shot, Pixels wrapped under Slider. The row grew, and Pixels' 44px touch target ran into the views above it, which is what `test_shot_controls_have_disjoint_targets_and_labels_stay_passive[True]` caught. A 360px window with no scrollbar does the same on macOS. Below 450px the views now have no gap, don't wrap and keep each word on one line, so at 360px every control's box matches main's. The test now also holds the row at 360px, so it fails on macOS too without this.
…e it waits With Pixels enabled before the difference reading, a press switches the view at once, but its mask queued behind every shot's background reading. Until it arrived the view was a grey image with a transparent mask, which looks the same as a pair with no changes. A press now goes to the front of the comparison queue, so it waits only for a comparison already running. On eight shots in Firefox, press to mask took 239-309 ms against 2058-2285 ms with the old order, at the same load. For the wait that remains, the view says "Finding changed pixels…" on the image's corner, in the same task as the press. The difference's existing `description` couldn't carry this: it comes from the reading, not the mask, and shows only as the Outline button's `aria-description`. The word's look is the one lf-trace already draws for "Loading captured image…", now one rule, `.lf-media-status`. A capture replaced while Pixels waited for its first mask left the view with no mask at all, because only the path through the reading rebuilt it. The commit that takes new images now restarts the mask whenever Pixels is showing. Tests: the first-press test now holds that the next frame shows the view with the word and no mask, that the mask arrives and that the word then goes. It fails if the mask is never set and if the word is never shown. A new test presses Pixels on the last of four shots and counts the other shots' readings when its mask arrives. It passes at no more than one, and reads 3 with the old queue order.
lf-shot and lf-dial imported all of Web Awesome's catalogue to have three controls before the page shows: comparison, radio group and radio. The other controls can wait, so a third entry, `webawesome-views`, holds those three, and both widgets import it. lf-trace, lf-diff and package authors keep `webawesome.esm.js`. The entries share chunks, so a page with both loads each control once: a page with a shot and two traces defines every wa-* element once and logs no console errors. Startup against main (4ef9f29), before the page first shows the server's state: - release-notes: 301 requests and 5,550,207 bytes, of them 292 JS requests and 4,759,343 JS bytes, against 298, 5,525,756, 289 and 4,734,891. That's 24,452 more JS bytes, where importing the whole catalogue added 107,763. - detail: 294 requests and 5,294,483 bytes, of them 288 JS requests and 4,649,417 JS bytes, against 292, 5,272,598, 285 and 4,627,528. That's 21,889 more JS bytes. - A page with no widgets: 276 requests and 5,061,091 bytes against 275 and 5,060,981. esbuild now splits the chrome's code into two chunks, because a third entry shares only part of it, so every page makes one more request for 110 more bytes. On main the dial was plain word toggles with no Web Awesome at all, so `detail` gains these bytes because this branch made its depths a radio group, not because its first press needs them: main's toggles answer a press the moment the page shows too. An earlier commit on this branch said lf-dial already imported Web Awesome. That was true only of this branch.
…es in Firefox The feature gallery said Tab reaches each control, which stopped being true when the views became a radio group: Tab reaches the chosen one, and the arrow keys choose the next. The `screenshot-views-keyboard` and `dial-keyboard` stills focused the radio by script and pressed Shift, which leaves `:focus-visible` false in Firefox, so neither drew a ring there. Both now arrive by Shift+Tab, as a reader does, and the radio holds `:focus-visible` and its ring in Firefox.
leaf-agent
left a comment
There was a problem hiding this comment.
2f50fb13b answers the startup point. The PR description still describes the branch as it was before that commit, and it becomes main's commit message at merge:
- "lf-shot now imports Web Awesome with its own module, as lf-dial, lf-trace and lf-diff already do". Both lf-shot and lf-dial now import
webawesome-views, and onmainlf-dial imported no Web Awesome at all. - The startup paragraph still gives the whole-catalogue figures (297 requests, 107,763 added JS bytes) for
release-notesonly. Your commit message has the current figures: 24,452 added JS bytes onrelease-notes, 21,889 ondetailwith the reason the dial pays them, and one extra 110-byte request on every page from the chrome chunk split.
Updating those two paragraphs from the 2f50fb13b message would bring the description up to date. The code has no other findings.
A settled press on an ordinary pair showed "Finding changed pixels…" for a few frames before its mask landed. The word now stays hidden for its first 150ms through a CSS animation delay in `.lf-media-status`, with no timer in JS, so a wait too short to read ends without it. Reduced motion keeps the word, because the shared guard shortens an animation's duration and leaves its delay. lf-trace's "Loading captured image…" takes the same delay from the same rule. Measured on `release-notes` under nice, on a settled press: an ordinary pair's mask lands at 56-59 ms in Firefox and 79-88 ms in Chromium, with the word painted in no frame. A 4K pair's lands at 259-269 ms and 390-405 ms. Comparing the pixels blocks the main thread, so the delay can't end in a painted frame until the comparison has finished: on 4K the word paints from about 230 ms in Firefox and 370 ms in Chromium, roughly 35 ms before the mask. The word followed a flag that the old mask's `.finally` cleared, so a capture replaced while its mask ran left no word and no mask until the new mask arrived. The word now follows from the drawing, which holds the mask and the error: it shows while the view has neither. The flag and its `.finally` are gone, and the error moved from the widget to the drawing so that the view can read it. Tests: the first-press test now holds only what is true of the next frame, the view with no mask yet. A new test holds each mask and sets the word's age on its own delay, so it doesn't depend on the machine's speed: hidden at 149ms, visible at 151ms, gone once the mask lands, with and without reduced motion. It fails without the delay. A second new test replaces a capture while the mask runs and holds that the old mask's end leaves the word up and that the new pair gets its mask. It fails with the flag restored, and without the restart in the commit that takes new images.
lf-trace draws only the radios, so it now imports `webawesome-views`. lf-diff names no wa-* element of its own, and its search field's `wa-input` and its copy buttons come with the chrome, so its import is gone. No bundled widget reads `webawesome.esm.js` now. It stays for a package's own module, which is what `module-authoring.md` already says of it. On `review-a-fix`, `pr-walkthrough` and `feature-gallery`, no wa-* element is left undefined in a light or shadow tree, no widget fails, and the console is empty. Startup against main (859d878), before the page first shows the server's state: - review-a-fix: 299 requests and 6,803,457 bytes, of them 292 JS requests and 4,855,053 JS bytes, against 297, 6,887,657, 290 and 4,939,378. - pr-walkthrough: 361 requests and 7,613,627 bytes, of them 305 JS requests and 6,578,884 JS bytes, against 361, 7,719,860, 305 and 6,685,971.
Arriving by Shift+Tab drew the ring in Firefox, but it changed the states against main: `dial-keyboard` scrolled the page, and `screenshot-views-keyboard` left the ring on another control on main, where each view is its own Tab stop. Both states now focus the chosen view with `focusVisible`, which Firefox reads, and press Shift, which Chromium reads. The radio holds `:focus-visible` and its ring in Firefox, and both stills are 0 px against main.
leaf-agent
left a comment
There was a problem hiding this comment.
213c52bdc makes the description wrong again, and the description becomes main's commit message:
- "lf-trace, lf-diff and package authors keep
webawesome.esm.js." lf-trace now importswebawesome-views, and lf-diff no longer imports Web Awesome at all. Only package authors keep the catalogue (module-authoring.md). - "As with lf-trace and lf-diff, a required module that fails to load stops the page from starting." lf-diff no longer loads a Web Awesome module, so the comparison holds only for lf-trace.
- The startup table covers a shot, a dial and a page with no widgets. A trace page now loads the smaller entry where it loaded the whole catalogue, so a row for it would show what the move buys.
9d4209efb also changes "Until the mask arrives the view says 'Finding changed pixels…'": the word now waits 150 ms before it shows. The code has no other findings.
The word bought nothing. Comparing the pixels blocks the main thread, so with its 150ms delay the word never painted on an ordinary pair and painted about 35 ms before the mask on a 4K one, and without the delay it only flashed. The waits it answered were measured under a throttle that inflated them about 8x: under nice they are 56-88 ms on an ordinary pair and 259-405 ms on 4K, which is the wait a settled press already has on main, with no word. `.lf-media-status` and its delay, `.lf-shot-pixel-status` and the word are gone. lf-trace's "Loading captured image…" has its own rule back, as on main, and the widget holds its error again, as the view no longer reads it. Pixels still enables once both images are drawn, a press still goes to the front of the comparison queue, and a capture replaced while Pixels waits still gets its mask. The test of the word is gone. The replaced-capture test now holds the mask: the old mask's end draws nothing, and the new pair gets its own. It fails without the restart in the commit that takes new images.
Dropping lf-diff's Web Awesome import left its search field's `wa-input` undefined on a plain page, which runs no chrome, so `test_a_host_sets_a_diff_value_and_reads_its_drawn_marks` timed out finding the field. lf-diff now imports `webawesome-chrome.js`, which holds the input. A plain page's import map resolves it, and a Leaf page has already loaded it, so `pr-walkthrough` stays at 305 JS requests and 6,579,001 JS bytes before the page shows, against main's 305 and 6,685,971. lf-diff is the only widget this branch moved that can make this mistake: it imports `portable-api.js`. lf-shot, lf-dial, lf-trace and lf-trace-compare import `widget-api.js`, which needs Leaf's boot script and doesn't load on a plain page, on main either.
…5397 left On main with #5397, the dial's Firefox turn holds the line read (-0.4px, was 708.6px), so its cell is a plain pass. The other strict xfails measure as before. The dial's depths are now Web Awesome radios (#5393), so a turn presses the radio. A new cell, dial × grown-after-glide, turns Read to Skim and, once the glide ends, lets a 200px image load in the gist of the section above. On main the gist read moves 199.8px in Chromium, which held it at 2e17258 before #5397 (-0.2px), and 199.7px in Firefox, which moved before too (560.7px). Both are strict xfails.
… on Web Awesome views and gallery frames (#5438) In Firefox, `leaf-dev stills` and `probe` could no longer capture `screenshot-pixels`. Since #5393 put the shot's views in a Web Awesome radio group, `settle`'s hover wait either hung or timed out there. Both failures came from #5356's hover check, which this fixes. **The hang.** The hover check read where the mouse had last moved in each of the page's frames, to tell whether the pointer rested inside a child frame. On the gallery page, with 19 frames, reading an `about:blank` frame never returned in Firefox. The check no longer visits frames. A mouse inside a child frame shows in the top document as a hovered `iframe`, so that is what the check now reads, and the per-frame timestamps are gone. **The timeout.** The check followed both the hover chain and the element under the pointer down through open shadow roots. In Firefox those disagree inside a Web Awesome radio button: the host is hovered, but the slot under the pointer isn't. So the hover never counted as caught up. The check now compares the two in the document's own tree, where a shadow host stands for everything its shadow root draws. It no longer sees a stale hover that stays inside one host, which no known state needs. ### Evidence - **Bursts of 8 captures 250 ms apart.** In each of Chromium, Firefox and WebKit, every one of these states drew one image: `screenshot-pixels`, `screenshot-options`, `image-preview`, `film-inspector`, `activity-feed`, `plan-capture` (button held), `diff-file-reply` (pointer in a frame) and `dynamic-request-preview`. `retained-quote` also drew one image in Chromium and WebKit. In Firefox it fails before capture, and it fails the same way with main's `browser.py`. - **The check's own cases, in every engine.** A container whose button scrolled out from under the pointer reads as behind in 12 of 12 readings, until the engine moves the hover. A mouse resting in an iframe reads as caught up. After a native drag, the record holds the drop point. > _This was written by Claude Code on behalf of max-sixty_
…ct (#5573) Three `--run-main` tests in `tests/browser/widgets/test_lifecycle_and_controls.py` have failed on main since #5393. They build a `wa-select` on a page holding an lf-diff and relied on lf-diff importing the whole `/vendor/webawesome.esm.js`. #5393 moved lf-diff to `webawesome-chrome`, which defines the input and copy button but no select, and kept the full library for a package's own module, as `module-authoring.md` says. So `wa-select` was never defined: the combobox locator timed out, and the typography test read a null `shadowRoot`. #5393's intent is right and the interface is unchanged, so the tests change: `library_select` and the typography test import `/vendor/webawesome.esm.js` before offering the controls, as a package's module would. No product code changes. `uv run pytest --run-main tests/browser/widgets/test_lifecycle_and_controls.py -k "library_select or webawesome"` reproduced the typography failure before the change (`TypeError: Cannot read properties of null (reading 'querySelector')`), and after it all five selected tests pass: the three named in #5488 (the reopen test under both motion settings) and `test_webawesome_chrome_loads_without_optional_controls`, which shares the `library_select` fixture. Closes #5488 — automated triage Co-authored-by: leaf-agent <[email protected]>
The last consolidatable row from the 2026-11-03 sweep for duplicate implementations (#5291): choosing one of a few views had two mechanisms. lf-shot's views (Slider, Pair, Pixels) and lf-dial's depths (Skim, Read, Everything) were word toggles with
aria-pressed. lf-shot's took no arrow keys, and lf-dial stepped through its depths with arrow commands of its own (dial.less,dial.more). lf-trace's recording scope and lf-trace-compare's recordings were Web Awesome'swa-radio-group.All four are now a
wa-radio-groupofappearance="button"radios, and lf-dial's arrow commands and pressed state are deleted. Each widget offers its radios in the word role (actionClass), so every group looks as the toggles did: plain words, with only the chosen one framed.webawesome.cssholds the group's row and the radio's type for all of them. This follows the 3 Nov choice against framed or joined buttons for choices.A radio group needs Web Awesome before it can take a press, so lf-shot, lf-dial and lf-trace import a new entry,
webawesome-views, with their own modules. It holds comparison, radio group and radio, and shares its chunks with the other entries, so a page defines each control once. lf-diff importswebawesome-chrome, which holds the search field it draws and costs nothing extra on a Leaf page, where the chrome has already loaded it. No bundled widget readswebawesome.esm.jsnow; it stays for a package's own module. lf-shot's late load, its refit, the wait forwa-comparison, and the clipped frame that stood in for the divider are deleted.Pixels no longer waits for the difference reading, which arrives after the page shows, because it needs only the two images. A press goes to the front of the comparison queue, so its mask waits only for a comparison already running. A capture replaced while Pixels waits restarts its mask.
What changes for the user:
maininleaf-dev stills, light and dark.main, Pixels was disabled until the difference reading arrived. The view is a grey image until its mask lands, as on a settled press: 56–88 ms on an ordinary pair and 259–405 ms on a 4K one.Startup against
mainat the time of each reading, before the page first shows the server's state (leaf-dev probe --base):release-notes, a shotdetail, a dialreview-a-fix, tracespr-walkthrough, a diffA shot pays because a press must work once the page shows: loading Web Awesome afterwards left the views inert for 0.2–0.7 s, and the maintainer chose the first press over the bytes. A dial pays only because its depths are now a radio group, the price of one mechanism, since
main's toggles already took the first press. Every page's extra request comes from esbuild splitting the chrome's code into two chunks, because a third entry shares only part of it. As with any required module, awebawesome-viewsthat fails to load stops the page from starting (widget-loader.js), wheremain's late load only lost the divider.Tests:
test_a_shot_takes_a_view_pressed_as_the_page_shows_and_keeps_its_dividerpresses Pixels the moment the page shows, reads the view the next frame draws, and holds that the mask arrives. It fails against the late load and against Pixels waiting for the reading. A new test presses Pixels on the last of four shots and counts the other shots' readings when its mask arrives, and another replaces a capture while Pixels waits.test_shot_controls_have_disjoint_targets_and_labels_stay_passivealso holds the row at 360px, where the shared group's wrap would put Pixels' touch target over the views above it.leaf-dev stillsgainsscreenshot-views-keyboardanddial-keyboard. Thetestjob's two failures,test_each_sampled_focus_ring_is_shown_whole_in_its_surfaceandtest_an_authenticated_navigation_journey_becomes_credential_free_review_evidence, fail at the same lines onmain.