Skip to content
Merged
Changes from 2 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
12 changes: 12 additions & 0 deletions packages/web-shell/client/styles/standalone.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ textarea,
user-select: text;
}

/*
* Firefox does not paint the default selection highlight for text whose
* element chain passes through a `display: contents` element (the
* `data-user-selectable` wrapper on MessageItem). The logical selection
* (copy, selectionchange popup) works fine - only the visual highlight is
* missing. An explicit `::selection` background makes Firefox paint the
* highlight where the default painting fails. #8214.
*/
[data-user-selectable] ::selection {
background: hsl(210 100% 50% / 30%);
}

/*
* iOS Safari auto-zooms any <input> / <textarea> / contenteditable whose
* computed font-size is < 16px when focused. The composer editor sits at
Expand Down
Loading