REOPENED4824
CSS "border-bottom-style: dotted" attribute sometimes draws extra pixel
https://bugs.webkit.org/show_bug.cgi?id=4824
Summary CSS "border-bottom-style: dotted" attribute sometimes draws extra pixel
John Sullivan
Reported 2005-09-03 09:37:40 PDT
This bug is also in Radar as <rdar://4045083> The CSS border-bottom-style:dotted attribute sometimes draws an extra pixel in the bottom border when the link length is a certain length. See screenshot. For "Fire" and "Colloquy" the bottome borders look fine; but for "LimeWire" and "Fractality" you can see an extra pixel at the right side of the border; almost like an ink smudge. What's probably happening is that it's always drawing a last pixel at the end of the bounds... and this sometimes happens to line up with the dotted pattern, sometimes not.
Attachments
test case (312 bytes, text/html)
2023-05-07 10:22 PDT, Alexey Proskuryakov
no flags
mitz
Comment 1 2006-02-17 05:34:36 PST
(In reply to comment #0) > What's probably happening is that it's always drawing a last pixel at the end of the bounds... and this > sometimes happens to line up with the dotted pattern, sometimes not. This is intended (QWKPainter.mm:295): // Do a rect fill of our endpoints. This ensures we always have the // appearance of being a border. We then draw the actual dotted/dashed line. ideally it should be done only if two borders meet at the given endpoint.
Ahmad Saleem
Comment 2 2023-05-06 23:56:29 PDT
(In reply to mitz from comment #1) > (In reply to comment #0) > > What's probably happening is that it's always drawing a last pixel at the end of the bounds... and this > > sometimes happens to line up with the dotted pattern, sometimes not. > > This is intended (QWKPainter.mm:295): > // Do a rect fill of our endpoints. This ensures we always have the > // appearance of being a border. We then draw the actual > dotted/dashed line. > > ideally it should be done only if two borders meet at the given endpoint. I tried to search for this comment in WebKit source using Searchfox.org (easier to use when trying to search comment) but I couldn't find this comment. I am not sure on the radar bug, whether we have any testcase etc. Can we close this now? Adding @ap - to help on Radar bit.
alan
Comment 3 2023-05-07 09:52:31 PDT
I am not seeing any test case on this. Not sure what the right category for "needs more information" in bugzilla but I am somewhat convinced we already addressed this so -> config changed.
Alexey Proskuryakov
Comment 4 2023-05-07 10:22:04 PDT
Created attachment 466261 [details] test case
Alexey Proskuryakov
Comment 5 2023-05-07 10:26:30 PDT
Doesn't seem fixed. All browser engines are different here, but at least on this test case, Firefox seems nicest.
alan
Comment 6 2023-05-07 12:58:24 PDT
(In reply to Alexey Proskuryakov from comment #4) > Created attachment 466261 [details] > test case 👍
Ahmad Saleem
Comment 7 2024-04-12 04:18:08 PDT
@Alan & Alexey - I think bug 268448 might have progressed it slightly. Since Safari 17.5 is different from Minibrowser. https://commits.webkit.org/276585@main
Note You need to log in before you can comment on or make changes to this bug.