<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Hi,<br>
<br>
As far as I know, no one is working on this bug, so if you'd like to
contribute a fix based on the initial patch, that would be fine. In
addition to adding tests, we would want to see an evaluation that
explains why the fix is correct, especially since the comment in the
JDK bug says: "It seems to work, but is based on observations rather
than an understanding ...".<br>
<br>
If you haven't already done so, please read the CONTRIBUTING
guidelines [1].<br>
<br>
Thank you.<br>
<br>
-- Kevin<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://github.com/openjdk/jfx/blob/master/CONTRIBUTING.md">https://github.com/openjdk/jfx/blob/master/CONTRIBUTING.md</a><br>
<br>
<br>
<div class="moz-cite-prefix">On 6/15/2023 2:53 AM, William Barton
wrote:<br>
</div>
<blockquote type="cite" cite="mid:UjwLlhLHdyLYntKEG7UC6RG9V6Nxg4xPOtMCgSDRsea7t0Pz25Iit5a8zM3xI-BEqMMYEuqtD4gs9I2AtWIU4G89CjJRYTn8YCkdeldJgFs=@protonmail.com">
<div>I've recently run into <span>JDK-8149134</span>: when a Text
node has been added to a TextFlow, the Text node's
selectionStart and selectionEnd properties are interpreted
relative to the whole TextFlow rather than the individual span,
which means that a selectionFill color may be applied in the
wrong place. This prevents rich-text controls implementing the
same text-selection appearance as regular TextAreas.<br>
</div>
<div><span><br>
</span></div>
<div><span>The bug was originally reported against JavaFX 8 but
the relevant code appears to behave identically in the current
git master.</span></div>
<div data-darkreader-inline-color="" style="font-family: Arial,
sans-serif; font-size: 14px; color: rgb(232, 230, 227);
--darkreader-inline-color: #d8d4cf;"><br>
</div>
<div><span>I'd like to get this fixed -- it looks like a fairly
simple task, as the JBS report already identifies a solution
(and I suspect the implementation can be simplified, since the
Text.spanOffset function added in the JBS draft patch appears
to be recalculating information already available from
TextRun.getStart).</span></div>
<br>
<div><span>Is anyone already working on this? If not, would it be
appropriate at this point for me to update the patch, add
tests, and open a PR, or is further discussion required first?<br>
</span></div>
<div data-darkreader-inline-color="" style="font-family: Arial,
sans-serif; font-size: 14px; color: rgb(232, 230, 227);
--darkreader-inline-color: #d8d4cf;"><span><br>
</span></div>
<div data-darkreader-inline-color="" style="font-family: Arial,
sans-serif; font-size: 14px; color: rgb(232, 230, 227);
--darkreader-inline-color: #d8d4cf;"><span>Thanks,<br>
</span></div>
<div data-darkreader-inline-color="" style="font-family: Arial,
sans-serif; font-size: 14px; color: rgb(232, 230, 227);
--darkreader-inline-color: #d8d4cf;"><span><br>
</span></div>
<div data-darkreader-inline-color="" style="font-family: Arial,
sans-serif; font-size: 14px; color: rgb(232, 230, 227);
--darkreader-inline-color: #d8d4cf;"><span>-- Will<br>
</span></div>
</blockquote>
<br>
</body>
</html>