From efbb220581dbc734b7d5cee1a34a27350162c6b1 Mon Sep 17 00:00:00 2001 From: Panda Wu Date: Wed, 16 Sep 2026 17:12:07 +0800 Subject: [PATCH] Keep selected editor text visible The textarea leaves its glyphs transparent so the syntax-highlight layer can paint them. Its selection background covers that layer, which made selected code unreadable without a separate foreground color. --- web/styles.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/styles.css b/web/styles.css index bb2c5f6c..65b6c258 100644 --- a/web/styles.css +++ b/web/styles.css @@ -862,8 +862,10 @@ p { display: none; } +/* Make textarea text visible when its selection background hides the syntax layer. */ #editor::selection { background: #264f78; + color: var(--ink); } .tok-keyword {