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
Two browser tests fail since #7439 marked a drawing's part on its frame alone #7497
All of these fail on cd2495ac7 (current main when diagnosed) on the Tend runner, running each node id with uv run pytest -n 3. A bisect over main's first-parent commits put the first failing commit at the PR named in the title: each test passes at the commit before it and fails at it.
One test here is a stale assertion and has a fix in #7506. The other was misattributed: it comes from #7447, not #7439, and the fix is a CSS design call I've left with @max-sixty.
test_threads_on_two_parts_of_a_picture_stand_an_entry_each_tracing_its_part: #7439, fix in #7506.#7439 meant to put a drawing part's marks, the trace included, on the frame the part is drawn in. So the trace on diagram node U now lands on its rect, and the test still expected the g. #7506 makes the test expect the frame and keeps its check that only that node is traced. It fails on current main and passes with the change. Its CI and landing are with tend-land.
test_native_sidebar_is_placed_before_widget_activation: #7447. This test passes at #7439. A first-parent bisect over #7439..d0618e073 finds that it passes at 97f0803 (#7425) and fails at 2d49456 (#7447), which keeps the page's reading face in a shadow tree's slots. The earlier bisect most likely went wrong because the worktrees had no node_modules, so every commit failed during setup.
Here is the mechanism. The worktree's slotted <p> has an 8 px top margin before activation and none after, so lf-worktree-diffs ends up 8 px shorter (187.97 → 179.97).
The face's rules match an element whose parent carries that value. So the tree's top-level details.lf-worktree-disclosure still gets them, even though its own value is reset. One of those rules is details { --lf-block-frame: trim } (reading.css).
The frame-edge rule (rendered.css) then passes --lf-frame-start: 1 through .lf-worktree-body and its slot, and it zeroes the first slotted child's top margin.
At #7425 every element in that chain reads --lf-block-frame: 0 and --lf-frame-start: 0. At head, details reads trim, and the body, the slot and the <p> read frame-start: 1.
So #7447's own statement, that "what a declared shadow tree draws starts without the face", doesn't hold for the tree's top-level elements. That goes beyond this one test: every top-level element of every declared tree on a reading-face page picks up the face's rules. I found no plain CSS route that resets the face on the host and still hands the page's value to the slots. A var() on the host resolves against the host's own reset value, and inherit() isn't supported in the Chromium the suite runs (159).
@max-sixty, the choice is how the face should reach slots but not the tree's own top-level elements. The options I see:
Put the reset back on :host and give the slots the page's value another way.
Have the face's rules skip a shadow tree's top-level elements.
Accept that the face reaches them, and have the worktree's sheet state its own frame.
Activity
leaf-agent commentedon Nov 28, 2026
One test here is a stale assertion and has a fix in #7506. The other was misattributed: it comes from #7447, not #7439, and the fix is a CSS design call I've left with @max-sixty.
test_threads_on_two_parts_of_a_picture_stand_an_entry_each_tracing_its_part: #7439, fix in #7506. #7439 meant to put a drawing part's marks, the trace included, on the frame the part is drawn in. So the trace on diagram node U now lands on itsrect, and the test still expected theg. #7506 makes the test expect the frame and keeps its check that only that node is traced. It fails on currentmainand passes with the change. Its CI and landing are with tend-land.test_native_sidebar_is_placed_before_widget_activation: #7447. This test passes at #7439. A first-parent bisect over #7439..d0618e073finds that it passes at 97f0803 (#7425) and fails at 2d49456 (#7447), which keeps the page's reading face in a shadow tree's slots. The earlier bisect most likely went wrong because the worktrees had nonode_modules, so every commit failed during setup.Here is the mechanism. The worktree's slotted
<p>has an 8 px top margin before activation and none after, solf-worktree-diffsends up 8 px shorter (187.97 → 179.97).:hostonto:where(:host > :not(slot))(reading.css). The host now carries--lf-reading-face: 1.details.lf-worktree-disclosurestill gets them, even though its own value is reset. One of those rules isdetails { --lf-block-frame: trim }(reading.css).--lf-frame-start: 1through.lf-worktree-bodyand its slot, and it zeroes the first slotted child's top margin.At #7425 every element in that chain reads
--lf-block-frame: 0and--lf-frame-start: 0. At head,detailsreadstrim, and the body, the slot and the<p>readframe-start: 1.So #7447's own statement, that "what a declared shadow tree draws starts without the face", doesn't hold for the tree's top-level elements. That goes beyond this one test: every top-level element of every declared tree on a reading-face page picks up the face's rules. I found no plain CSS route that resets the face on the host and still hands the page's value to the slots. A
var()on the host resolves against the host's own reset value, andinherit()isn't supported in the Chromium the suite runs (159).@max-sixty, the choice is how the face should reach slots but not the tree's own top-level elements. The options I see:
:hostand give the slots the page's value another way.I've assigned you this issue for that decision.
test: expect a diagram node's margin trace on its frame, as #7439 dra…