Fix transparent color of ::selection in Firefox

This forces `color: transparent` on selections.
In latest Firefox Nightly, this is no longer inherited on
`::selection` from the normal element.

References: <753827d749>
This commit is contained in:
Titus Wormer 2026-06-08 15:14:21 +02:00
parent 19046a6949
commit 7b54ec0a8d
No known key found for this signature in database
GPG Key ID: E6E581152ED04E2E

View File

@ -124,11 +124,13 @@
/*#endif*/
/* stylelint-enable declaration-block-no-duplicate-properties */
background: color-mix(in srgb, AccentColor, transparent 50%);
color: transparent;
}
&.selectionRendering {
::selection {
background: transparent;
color: transparent;
}
}