Closed
Bug 29151
Opened 26 years ago
Closed 26 years ago
Borders are ignored when positioning inline elements
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
VERIFIED
INVALID
M17
People
(Reporter: kcook, Assigned: buster)
References
()
Details
(Keywords: css1, verifyme)
Attachments
(1 file)
|
800 bytes,
text/html
|
Details |
See the "We are construction loan experts...." paragraph at the bottom of the
front page. The dark red CSS border on grey background starts over on each line
instead of surrounding the entire text box, creating a random underlining
effect. This is taking place within a SPAN tag that is within a TD tag and it
is using a LINKED style called "message" from a stylesheet named econstruction.css.
Comment 3•26 years ago
|
||
This can also be seen at:
http://w3cdom.com/lab/borders3.html
Span's borders seem all around messed-up...
FWIW, IE-5 renders this quite differently.. it seems to ignore span borders
altogether.
Comment 4•26 years ago
|
||
Confirmed on WinNT with 2000-03-13-08-M15 and 2000-03-13-17-M15-nb1b;
this is really obnoxious-looking.
Here is the style for the span in question:
.message {
width:610px;
font-family: Arial,Helvetica,sans-serif;
font-size: 15px;
border: 2px solid #990000;
background-color:#EEEEEE;
padding-left:15px;
padding-right:15px;
padding-top:5px;
padding-bottom:5px;
text-align:left;
}
This issue does not show us searching for css1 keyword and 'border' in summary;
I'd have expected that this would have been caught by one of dbaron's tests,
though.
Assignee: rickg → pierre
Status: UNCONFIRMED → NEW
Component: HTML Element → Style System
Ever confirmed: true
Keywords: css1
QA Contact: petersen → chrisd
Comment 5•26 years ago
|
||
At other example, http://w3cdom.com/lab/borders3.html,
The containing div's text writes in the span's borders... is this part of the
same bug or a separate problem?
Comment 6•26 years ago
|
||
In fact, it seems like Layout ignores borders when positioning inline elements.
It causes 2 problems:
- parents may write into children's borders
- borders may overwrite backgrounds inside inline elements
I'm going to attach a better testcase. Reassigned to buster.
Assignee: pierre → buster
Summary: CSS border on SPAN tag starts over on each line instead of surrounding the entire box, with overlapping effects. → Borders are ignored when positioning inline elements
Comment 7•26 years ago
|
||
This is the way the CSS inline box model works. If you want an inline element
to have room for a border, you should increase its 'line-height'. Marking
INVALID, since our current behavior is correct (despite what Pierre wishes the
spec says).
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Er... the inline box model accounts for borders horizontally. It's just
vertically where you must make sure to make room.
| Reporter | ||
Comment 10•25 years ago
|
||
The resolution of this bug also clarifies bug 30890 and makes it invalid too.
It seems that true inline stylesheeting is new with the advent of Mozilla, since
IE and NS have been rendering SPANs in a block-level fashion and none of us
expect the results of actual inline styling!
Thanks for clearing up this CSS issue.
KC
Comment 12•25 years ago
|
||
This is rendered properly in Mozilla and not In Netscape & IE. So its not our
problems its theres.
Works for Me
Platform: PC
OS: Windows 98
Build # 2000100508 M18 Trunk Build
Marking as Verified
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•