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>
9 lines
527 B
TypeScript
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); }");
|
|
});
|