Files
mangabaka-seeder/test/styles.test.ts
T
Lucas WintherandClaude Opus 5.5 a68159c958 fix(web): visible text selection on the main-cover band
The page-wide highlight is band red at 30%, invisible on the red band, so its
text looked unselectable. Reverse the band's colours for the selection there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 11:24:27 +02:00

9 lines
527 B
TypeScript

import { expect, test } from "bun:test";
test("selected text stays visible on the red main-cover band", async () => {
const css = await Bun.file("src/web/styles.css").text();
// The page-wide highlight is band red at 30%: invisible on a band that is already red.
expect(css).toContain(".mbseed-app ::selection { background: color-mix(in srgb, var(--mb-obi) 30%, transparent); }");
expect(css).toContain(".mbseed-app .mbseed-book.is-main ::selection { background: var(--mb-obi-ink); color: var(--mb-obi-deep); }");
});