Well, we already support painting `text-decoration` for selection ranges
for IME
<https://searchfox.org/mozilla-central/rev/4c065f1df299065c305fb48b36cdae571a43d97c/layout/generic/nsTextFrame.cpp#5602-5625>.
Why cannot support it? Style-system issue? Or overflow rect issue? (I
guess that the latter is difficult to solve if it causes performance
issues.)
On 5/5/2025 7:03 PM, 'Emilio Cobos Álvarez' via [email protected]
wrote:
Is the text decoration support feature-detectable?
Using it for things like spellchecker underlines and us just not
rendering them with no way for the site to tell seems unfortunate.
Assuming it's not a lot of effort (we have code for spellchecker to do
such thing), I think it'd be a good idea to implement it before
shipping this to release.
-- Emilio
On 5/5/25 8:05 AM, 'Jan-Niklas Jäschke' via [email protected]
wrote:
Moin,
I just landed Bug 1964089 (https://bugzil.la/1964089) to enable the
CSS Highlight API in its current state in the 140 release cycle. It
has been enabled on Nightly for a while.
In its current state, our implementation for CSS Highlight API does
not support text decorations (which we don't support in ::selection
either). I am planning to add support for this soon-ish, but don't
consider it a ship blocker.
Cheers,
Jan
--
Masayuki Nakano<[email protected]>
Working on DOM, Events, editor and IME handling for Gecko
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/08b84ae5-1dd2-43fa-a482-4bb4f6723339%40d-toybox.com.