Bug 15872 - Selection of text draws line artifacts when multiple lines with varying font sizes are selected
Summary: Selection of text draws line artifacts when multiple lines with varying font ...
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Trivial
Assignee: Nobody
URL: fast\text\basic\generic-family-reset....
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2007-11-06 21:50 PST by Anantha Keesara
Modified: 2024-04-27 19:52 PDT (History)
4 users (show)

See Also:


Attachments
test (1.44 KB, text/html)
2007-11-06 21:51 PST, Anantha Keesara
no flags Details
screenshot of test case, all highlighted (735.05 KB, image/png)
2024-04-24 14:25 PDT, Frances Cornwall
no flags Details
rendering in safari, firefox, chrome (272.45 KB, image/png)
2024-04-24 17:23 PDT, Karl Dubost
no flags Details
Safari 17.4.1 (19618.1.15.11.14) (539.43 KB, image/png)
2024-04-24 17:30 PDT, mitz
no flags Details
rendering in safari, firefox, chrome highlithing the issue (312.86 KB, image/png)
2024-04-24 17:52 PDT, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anantha Keesara 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.
Comment 1 Anantha Keesara 2007-11-06 21:51:55 PST
Created attachment 17088 [details]
test
Comment 2 mitz 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.
Comment 3 Robert Blaut 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.
Comment 4 Frances Cornwall 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.
Comment 5 Frances Cornwall 2024-04-24 14:25:21 PDT
Created attachment 471114 [details]
screenshot of test case, all highlighted
Comment 6 Karl Dubost 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.
Comment 7 Karl Dubost 2024-04-24 17:24:34 PDT
ah no the side to side is Bug 15300.

So we can close this one.
Comment 8 mitz 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.
Comment 9 mitz 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.
Comment 10 mitz 2024-04-24 17:32:12 PDT
s/site/since/
Comment 11 Karl Dubost 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.
Comment 12 Frances Cornwall 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.