You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_each_sampled_focus_ring_is_shown_whole_in_its_surface: 16 ring faults on option lists since #7456's whole-window capture #7531
tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface passes at e2ce3aae6 and fails at 15a30d773 (#7456, "Read ring pixels from a whole-window capture, so stills' next shot is whole"), run by node id on Linux at both commits. It fails in both the Linux test job and test-macos of scheduled run 46137118943 on ad7b71b63. Journeys run only in the scheduled suite, so #7456's CI didn't run it.
Deciding error:16 faults over 42 samples, all on lf-option rows and their lf-group, form.lf-another, lf-options-done and lf-chart neighbours on heat-loss, ideas-to-implement and review-a-fix. For example:
the ring on lf-option "Seal and insulate the lo" is not all there: its bottom edge shows the ring at 0% of its 176 samples where nothing in front takes hits ... (ring 241,438,959,565)
The flagged rings sit at y ≥ 438 in a list that runs down the window, and no ring higher up is flagged. #7456 changed how the ring reader takes its pixels, to a whole-window capture. Lead: the reader may now map ring coordinates into the capture wrongly, or read a capture taken before the page scrolled the focused row into view. Before changing the reader, take a still of one flagged ring to see whether the ring is really cut off on the page.
#7543 fixes this. It fails on current main and passes with the change.
The capture was wrong, not the page. Playwright's style screenshot option, which browser.screenshot uses, appends an unmarked <style> to every shadow root while it captures. The frame-edge rule in rendered.css counted that <style> as lf-option's last child, so the slotted paragraph's 13px bottom margin came back and every option below moved down in the capture. #7456's whole-window reading then looked for those rings 13px above where the capture drew them. A plain page.screenshot() taken at the same moment draws the rings where the page measured them.
The same rule fault reaches authors: a <style>, <script> or <template> beside the first or last block of a frame left that block's margin untrimmed. The fix makes the edge rules skip elements that never render, and #7456's reader stays as it is. #7543 adds a browser test that fails on main. With the fix, the ring journey test passes when run by node id on Linux, and a stills run over every state shows no on-screen change. Review and CI on #7543 are still pending.
Activity
leaf-agent commentedon Nov 28, 2026
#7543 fixes this. It fails on current main and passes with the change.
The capture was wrong, not the page. Playwright's
stylescreenshot option, whichbrowser.screenshotuses, appends an unmarked<style>to every shadow root while it captures. The frame-edge rule inrendered.csscounted that<style>aslf-option's last child, so the slotted paragraph's 13px bottom margin came back and every option below moved down in the capture. #7456's whole-window reading then looked for those rings 13px above where the capture drew them. A plainpage.screenshot()taken at the same moment draws the rings where the page measured them.The same rule fault reaches authors: a
<style>,<script>or<template>beside the first or last block of a frame left that block's margin untrimmed. The fix makes the edge rules skip elements that never render, and #7456's reader stays as it is. #7543 adds a browser test that fails on main. With the fix, the ring journey test passes when run by node id on Linux, and a stills run over every state shows no on-screen change. Review and CI on #7543 are still pending.