The active pane's other edges drawn with the curves, so moving between panes repaints only those lines

A frame over the whole pane repainted the whole pane at every move (the forks keypress-to-paint
median rose by half a frame); its left, foot and right are now a hairline path in the curves'
layer, under what peeks, cut where the next column or pane covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-17 00:37:20 -05:00
1 parent d943285f95
commit 9c0f4b8c02
5 files changed
+35 -9

No files matched your search

+8 -4
View File
@@ -136,12 +136,16 @@ test("the selection bar is over the curves and under a pane peeking over it; cur
await noFaults(page, "with the bar (its place clear of the curves)");
const z = await page.evaluate(() => ({ curves: Number(getComputedStyle(document.querySelector(".curves")!).zIndex), peek: 6 }));
expect(z.curves).toBeGreaterThan(z.peek);
// The active pane: its other edges in the strong ink too.
// The active pane: the heavy rule on top, its other edges in the strong ink (drawn with the curves, along its left, foot and right).
const frame = await page.locator(".pane.active").evaluate((el) => {
const a = getComputedStyle(el, "::after");
return { top: a.borderTopWidth, left: a.borderLeftWidth, right: a.borderRightWidth, bottom: a.borderBottomWidth, same: a.borderLeftColor === a.borderRightColor && a.borderRightColor === a.borderBottomColor, notRule: a.borderLeftColor !== getComputedStyle(el).borderRightColor };
const r = el.getBoundingClientRect();
const f = document.querySelector<SVGPathElement>(".curves path.frame");
if (!f) return null;
const a = f.getPointAtLength(0);
const b = f.getPointAtLength(f.getTotalLength());
return { rule: getComputedStyle(el, "::after").height, left: Math.abs(a.x - r.left) < 1.5, right: Math.abs(b.x - r.right) < 1.5, stroke: getComputedStyle(f).stroke !== getComputedStyle(el).borderRightColor };
});
expect(frame).toEqual({ top: "3px", left: "1px", right: "1px", bottom: "1px", same: true, notRule: true });
expect(frame).toEqual({ rule: "3px", left: true, right: true, stroke: true });
});
test("a menu's button closes the menu it opened: the top bar's, and a pane's ⋯", async ({ page }) => {