Browser tests for round four: peek covering curves (curveFaults), tab or title, bar over curves, menu buttons, link underlines at six pixel ratios
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
2cefbbfd5f
commit
e77b9ba073
4 files changed
+280
-3
No files matched your search
+2
-1
@@ -152,7 +152,8 @@ test("every pane of a crowded column shows at least its tab, above or below the
|
||||
[...document.querySelectorAll<HTMLElement>(".strip .pane[data-covered], .strip .pane[data-scrolled]")].map((p) => {
|
||||
const r = p.getBoundingClientRect();
|
||||
const t = p.querySelector<HTMLElement>(".tabline .tabtitle")!.getBoundingClientRect();
|
||||
const rule = parseFloat(getComputedStyle(p, "::after").height) || 0;
|
||||
const a = getComputedStyle(p, "::after");
|
||||
const rule = parseFloat(a.borderTopWidth) || parseFloat(a.height) || 0;
|
||||
return { active: p.classList.contains("active"), off: Math.abs((t.top + t.bottom) / 2 - (r.top + rule + r.top + 29) / 2) };
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user