Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions web/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,13 @@ p {
display: none;
}

/* The textarea's normal glyphs are transparent because #editor-highlight
paints the syntax-colored text underneath. During selection, however, the
textarea's selection background covers that layer, so selected glyphs need
their own visible color. */
Comment on lines +865 to +868

@ColtenOuO ColtenOuO Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/* The textarea's normal glyphs are transparent because #editor-highlight
paints the syntax-colored text underneath. During selection, however, the
textarea's selection background covers that layer, so selected glyphs need
their own visible color. */
/* Make textarea text visible when its selection background hides the syntax layer. */

The first half repeats the nearby comment explaining that the textarea text is transparent and the highlight layer supplies the visible text. Consider keeping only the selection-specific reasoning.

WDYH

#editor::selection {
background: #264f78;
color: var(--ink);
}

.tok-keyword {
Expand Down