[Webkit-unassigned] [Bug 271820] Disabling both underline and strikethrough break the typed text
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 9 05:30:39 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=271820
--- Comment #5 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
(In reply to Valentin Perignon from comment #4)
> Ahmad — Thanks for your reply.
>
> Where can I download Safari TP 192? The latest released available on the
> Apple website is 191.
>
> You can find a reproducible test case here:
> https://codepen.io/valentin-lab/pen/wvZjBoW.
>
> This is a simple contentEditable div with two buttons to apply style.
>
> To reproduce, follow the following steps:
> 1. Select a word
> 2. Click the button "S" (strikethrough) and "U" (underline) to apply both
> styles on the selected word
> 3. Put the caret at the end of the word
> 4. Click again both S and U buttons (the order doesn't matter)
> 5. Write anything on the contentEditable div
> 6. As you can see, the style previously applied change, the text is no
> longer underlined and striked through, it is only striked through.
>
> I uploaded the video "Reproductible test case" that reproduce these steps.
Correct! yes - I just typed STP192 by mistake.
I am definitely able to reproduce the bug and I can see that it does not retain style and what I noticed different from your case that in my case, it didn't even retained 'strike through'.
*** Safari & Firefox Nightly 126 ***
> Take 'ipsum' as selection and press 'S' and 'U'
> Now style applied, press 'down' key while selection is applicable to move the caret to end of 'ipsum' [selection needs to be manually made]
> then select any style 'U' (in my case) and then type anything
RESULT: No style applied to typed 'text'
*** Chrome Canary 125 ***
> Take 'ipsum' as selection and press 'S' and 'U'
> Now style applied, press 'down' key while selection is applicable to move the caret to end of 'ipsum'
> then select any style 'U' (in my case) and then type anything
RESULT: Preserve style.
______
NOTE - We might have older bug report (if I recall correctly) for not able to retain style so we might be able to duplicate this so I might do so in future.
But thanks again for reporting and sharing test case, it really helps to understand difference across browsers as well.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240409/1bbf94b6/attachment-0001.htm>
More information about the webkit-unassigned
mailing list