Closed
Bug 274483
Opened 20 years ago
Closed 20 years ago
Phantom text behind an inline img shouldn't have a visible border
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dough, Unassigned)
References
()
Details
The phantom text that takes up the space for an inline <img> shouldn't ever display a visible border. The real text doesn't.
Updated•20 years ago
|
Assignee: firefox → nobody
Component: General → Layout
Product: Firefox → Core
QA Contact: firefox.general → core.layout
Version: unspecified → Trunk
Comment 1•20 years ago
|
||
That's not "phantom text", but rather the <a> element, which you have styled to have a border. The layout is correct given that CSS.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•20 years ago
|
||
Thanks much. I see now that you are correct. But it does still seem a little strange. I just carefully moved the mouse pointer around those double (red and green) borders and found that the active area for the <a> includes both boxes, the union of the borders for the <a> and <img> are included. This wouldn't have been so noticable, except for the inadvertent extra <space> included in the <a> element because I put the </a> on a separate line, and the 'margin' I put on the last image. I've put my modified version up instead of the original. http://userweb.windwireless.net/~dough/Bug.html I think "phantom text" is still a good name for the <a> border as it has the same dimensions as text there would have had, with the exception of the left/right border which are determined by the width of the <img> box inside. But the height of the <a> border is the same as the text around it and the position of the the top and bottom borders is the same as the text. The width of the <a> border is the width of the <img>, but it's height and placement follow that of the text.
You need to log in
before you can comment on or make changes to this bug.
Description
•