Closed Bug 91776 Opened 24 years ago Closed 23 years ago

selection box too high, overwrites other lines

Categories

(Core :: DOM: Selection, defect, P2)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: thorgal, Assigned: dbaron)

References

Details

Attachments

(1 file)

2001072021 Linux i/686, but it's been happening for as long as I remeber. Please take a look at the PNG image I'm going to attach in a moment. Notice that the bottom rasterline of three "g"s and two "y"s in the second row is overdrawn by selection box. It looks like selection box is one rasterline to high. Also letters _inside_ selection can get overdrawn - like "y" in "already". It does not happen in every case, but more often than not.
Attached image PNG image demonstrating the problem. (deleted) —
This is almost certainly a font issue akin to bug 59825... ccing people active on that bug
Depends on: 91794
I agree with Boris, at first glance this like a font metrics problem. Miloslaw, would it be possible for you to give us a sample URL/html file that displays this problem?
adding marc and frank to the cc list -- need their input marc/frank -- which of you two owns text layout? selection is just acting upon the information it receives, all selection is doing is saying: "give me the height of these characters" and then it inverts the color, so if we are getting bad numbers, then we draw incorrectly
Assignee: mjudge → beppe
Well, the example screenshot was made from http://bugzilla.mozilla.org/enter_bug.cgi?product=Browser I am using adobe-helvetica-iso8859-1 font. Font size in prefs is set to 15. Display resolution is "system setting", which is "75x75 dpi" according to xdpyinfo. I can deliver more details about my X if necessary.
This is probably not a bug. The selection is covering the same area as the background would, and the background is covering exactly the right area. You can get the same effect in other browsers if, e.g., the line-height is small (as in this case). (Note that the line-height may be too small in certain cases, which is another bug or two and which is being actively investigated already.)
See bug 91794 anyway.
First: bug or not - it looks really lame and unprofessional, especially that with other fonts the effect is even more pronounced, as more reasterlines get overdrawn. 2nd: just checked NS4.77 and Opera 5.0 - neither of them display this problem.
I'm planning to fix this. See bug 91794. Dup it if you want, or assign it to me. (It's really a dependency.)
Over to dbaron.
Assignee: beppe → dbaron
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.4
Fix for bug 91794 checked in 2001-08-23 06:44 PDT.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified fixed linux build 2001-09-17-05-0.9.4
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: