Dotted borders are not replaced by a solid border on the 4 sides (bottom and right are off by 1px) in test case (coming up).
Created attachment 21739 [details]
Actually, all 4 sides seems off by (-1px, -1px) if (0,0) if the upper left corner.
To see this bug, hover the links with your mouse: the solid border is off.
Created attachment 21948 [details]
This one has more line sizes
Created attachment 21949 [details]
This fixes the issue by forcing anti-aliasing. My guess is that after calling adjustLineToPixelBoundaries(), the added 0.5 is floored when AA is off.
Comment on attachment 21949 [details]
Sorry, I don't see anti-aliasing making any difference here.
But the real problem is that right now we can't afford to enable anti-aliasing for dotted lines, it's too slow.
I am not able to reproduce this problem in 4.5.3 or 4.6.0
This is an old bug and I will resolve it guessing that it was fixed.
Please re-open if i'm wrong.