REOPENED 15872
Selection of text draws line artifacts when multiple lines with varying font sizes are selected
https://bugs.webkit.org/show_bug.cgi?id=15872
Summary Selection of text draws line artifacts when multiple lines with varying font ...
Anantha Keesara
Reported 2007-11-06 21:50:18 PST
When a HTML page contains different lines of text, each in a different font size and user selects the text by dragging the mouse, the background color change draws wierd lines. This is a problem only when different lines have different font sizes. Repro ##### 1) Launch layout test fast\text\basic\generic-family-reset.html (attached) 2) Start selecting the text by dragging the mouse 3) Look for blue lines drawn on top and bottom of various glyphs.
Attachments
test (1.44 KB, text/html)
2007-11-06 21:51 PST, Anantha Keesara
no flags
screenshot of test case, all highlighted (735.05 KB, image/png)
2024-04-24 14:25 PDT, Frances Cornwall
no flags
rendering in safari, firefox, chrome (272.45 KB, image/png)
2024-04-24 17:23 PDT, Karl Dubost
no flags
Safari 17.4.1 (19618.1.15.11.14) (539.43 KB, image/png)
2024-04-24 17:30 PDT, mitz
no flags
rendering in safari, firefox, chrome highlithing the issue (312.86 KB, image/png)
2024-04-24 17:52 PDT, Karl Dubost
no flags
Anantha Keesara
Comment 1 2007-11-06 21:51:55 PST
mitz
Comment 2 2007-11-07 10:06:57 PST
That's just the selection highlighting for the part of the table cell above the line of text. Not sure it's a bug.
Robert Blaut
Comment 3 2008-03-16 13:37:11 PDT
(In reply to comment #2) > That's just the selection highlighting for the part of the table cell above the > line of text. Not sure it's a bug. > I think that the problem should be considered as part of, generally speaking, ugly highlight algorithm in Webkit (bug 15300). Confirmed issue, but classified as cosmetic.
Frances Cornwall
Comment 4 2024-04-24 14:22:48 PDT
The test case does not display blue lines drawn on top and bottom of various glyphs in Safari 17.4.1.
Frances Cornwall
Comment 5 2024-04-24 14:25:21 PDT
Created attachment 471114 [details] screenshot of test case, all highlighted
Karl Dubost
Comment 6 2024-04-24 17:23:50 PDT
Created attachment 471119 [details] rendering in safari, firefox, chrome I wonder if the bug is about side to side highlight in the selection.
Karl Dubost
Comment 7 2024-04-24 17:24:34 PDT
ah no the side to side is Bug 15300. So we can close this one.
mitz
Comment 8 2024-04-24 17:30:34 PDT
Created attachment 471121 [details] Safari 17.4.1 (19618.1.15.11.14) Attaching a screenshot as of Safari 17.4.1 (19618.1.15.11.14) showing that the highlights are still as they were.
mitz
Comment 9 2024-04-24 17:31:56 PDT
Reopening site the “configuration changed” resolution was incorrect. It’s OK to close as “behaves correctly” or “won’t fix”, but the behavior is as it was.
mitz
Comment 10 2024-04-24 17:32:12 PDT
s/site/since/
Karl Dubost
Comment 11 2024-04-24 17:52:16 PDT
Created attachment 471122 [details] rendering in safari, firefox, chrome highlithing the issue Thanks Mitz This clarifies the issue. According to Mitz screenshot, let's try better steps to reproduce. 1. Go to https://bugs.webkit.org/attachment.cgi?id=17088 2. Select from the top to the middle of font-family: inherit (Verdana); font-size: 0.8em; in the tt column. Result: There is a line at the top going to the end of the line. Indeed this seems to be a kind of artefact of the side by side highlighting.
Frances Cornwall
Comment 12 2024-04-27 19:52:54 PDT
Thank you Karl and Mitz for clarifying the test case. I agree that this should stay open, sorry that I misunderstood that it was when selecting all of the fonts rather than partially.
Note You need to log in before you can comment on or make changes to this bug.