If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Borders that depend on fonts (with ex metric) show strange behavior

NEW
Unassigned

Status

()

Core
Layout
16 years ago
8 years ago

People

(Reporter: Sergej, Unassigned)

Tracking

Trunk
Future
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
Look at http://dreamer.nitro.dk/gnu/fff/, all borders should have the same width
of 0.2ex of the user's deafult font. In Mozilla sometimes they are same,
sometimes they aren't. It looks like it depends on the font type and size. Try
different fonts and zoom factors to observe this strange behavior.

I've tried it on win32 20011110 build too and the problem is still there, though
I think the problem does disappear if I don't specify background in this style:

div.sections a {
  display: block;
  text-align: center;
  padding: 1.5ex 0.5ex 1.5ex 0.5ex;
  border-bottom: 0.2ex solid Black;
  text-decoration : none;
  background: #dddddd;
  border-left: 0.2ex solid Black;
}
Sounds like for some fonts the metrics are such that we paint the background
partially over the border of the <a> above us...
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 2

16 years ago
maybe a combination of rounding errors in the various drawing functions 
involved. The last cell doesn't have an <a>, instead it has
div.rest {
  [...]
  background : White url(rest.jpg) repeat-y left;
}

but this image is still overshotting a little bit (it can be seen that the 
bottom-border after "LINKS" is smaller by one pixel), i.e., the background image 
in this case is anchored one-pixel higher than desired. If all the bottom-border 
values are changed to 1px, then no problems arise (even with 
"background: #dddddd;" still there).

Updated

16 years ago
Target Milestone: --- → Future
Reporter, the url is dead.  Could you attach a testcase to this bug?
(Reporter)

Comment 4

14 years ago
Created attachment 135985 [details]
The testcase
Assignee: attinasi → nobody
QA Contact: chrispetersen → layout
You need to log in before you can comment on or make changes to this bug.