Closed
Bug 30890
Opened 26 years ago
Closed 25 years ago
margin on SPAN calculated incorrectly for last line of right-aligned content
Categories
(Core :: Layout, defect, P2)
Tracking
()
VERIFIED
INVALID
People
(Reporter: kcook, Assigned: buster)
References
()
Details
(Keywords: css1)
Attachments
(1 file)
|
190 bytes,
text/html
|
Details |
Multi-line content within a <SPAN> tag is being rendered with a trailing space
on the last line of content only. (No space has been requested.) This space
might also be interpreted as padding-right:1em applied to the last line only of
the <SPAN> content.
Sample: See the e-mail link to klehning@pgmusa.com on the left lower sidebar of
http://www.timwoodsfm.com/whatwedo.htm. The trailing space/padding to the right
of this address shows the unwanted trailing space.
Comment 1•26 years ago
|
||
moving to layout
reporter - what build are you using?
Assignee: rickg → troy
Component: HTML Element → Layout
Yes, I see the problem with the extra trailing space after "klehning@pqmusa.com"
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 4•26 years ago
|
||
Using Build 2000022820 on NT.
| Reporter | ||
Comment 5•26 years ago
|
||
I just ran across an additional rendering irregularity which may well be an
example of this same bug. NT platform, build 2000022820.
This example is similar except that there is an unwanted *preceding* space at
the beginning of a <SPAN> chunk instead of the trailing space at the end of a
<SPAN> chunk as I reported in the previous example.
At http://design.myersinternet.com/kcook/mozbug/direct_la.htm , see the two
instances of "take the..". They should not be indented any more than the rest
of the text.
redistributing bugs across future milestones, sorry for the spam
Target Milestone: M18 → M19
changed the summary to describe the root problem. added a minimized test case
derived from original URL. marked P2, should be fixed for CSS1 compliance.
Keywords: css1
Priority: P3 → P2
Summary: trailing space (or is it padding?) inserted in last line of <SPAN> content. → margin on SPAN calculated incorrectly for last line of right-aligned content
| Reporter | ||
Comment 9•25 years ago
|
||
Well, good news :). If I've learned my lesson correctly, this isn't a bug and
Mozilla is rendering properly.
What's happening is that the padding/margins are indeed being applied to the
beginning and final words of the span, and since SPAN is an inline element, this
is correct. In order for the padding/margins to be applied to the entire block
of SPANned content, I would need to add "display:block" to the style sheet or
use a DIV instead.
A lot of us (me included) have come to expect a block-like rendering of SPANned
content because that's how IE and NS have been rendering it by default.
I learned this lesson from the resolution of a similar bug I reported (29151),
in which SPANned material is severely messed up in Mozilla, but again because a
block-like rendering was expected instead of the ugly, yet correct, inline
rendering that Mozilla delivered.
One less bug to swat :)
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Comment 10•25 years ago
|
||
Mozilla is rendering it properly. Netscape & IE arent. There is nothing to see
here :) Marking as Verified.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•