Closed Bug 46217 Opened 24 years ago Closed 8 years ago

{ib}border don't show with inline specified + some tags [INLINE]

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: neo-8ba, Assigned: waterson)

References

Details

(Keywords: css1, testcase)

Attachments

(1 file)

with this style sheet:
div.a {display: inline;border-style: solid}

div.b {display: block;border-style: solid}

and this code:
<div class="a"><p>block a</p></div>
<div class="b">block b</div>

the border of the block a don't show.
this bug doesn't happen when the display:inline is removed (but it's still the 
default), or when the <p></p> tags are removed. It works also with others tags 
like <div> or perhaps other (i havn't made furthers tests)
One could argue that it's correct that it doesn't show - the CSS spec isn't
clear on this.  The question comes down to whether you should generate block
frames for inlines that contain blocks, to contain the blocks.  I'd need to
think about it, and maybe ask www-style (not that I'd expect an answer...).

However, I don't like the current layout of the example - the inline border is
being shown on the line below the paragraph.  Why?
Assignee: clayton → waterson
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: border don't show with inline specified + some tags → {ib}border don't show with inline specified + some tags
Keywords: testcase
That *is* strange -- it should either appear both before and after the <p>, or
it should not appear at all. I would go with the first, due to empty inline
considerations. But the second makes sense too.

Having said that... Future? We have much bigger fish to fry...
Keywords: correctness, css1
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Summary: {ib}border don't show with inline specified + some tags → {ib}border don't show with inline specified + some tags [INLINE]
QA Contact: petersen → ian
I guess I reconfirm this using FizzillaCFM/2002070913. In block a, a border is
drawn around an empty inline box, while the "block a" text is down on a line by
itself quite outside the border. Setting All/All.

Was it ever decided if inline boxes can contain block boxes and what that means?
OS: Windows 98 → All
Hardware: PC → All
Note that now the border appears only before the <p>.

The reason for that is that we don't create the second inline of an ib split
unless it's actually needed, and it's not needed in this case....

Changing that would be easy, but do we want to?
The issue from comment 5 got fixed in bug 480323.  Is there anything left here?  Our behavior looks correct per current CSS2.1 spec now...
Depends on: 480323
QA Contact: ian → layout
FWIW, our current layout for the testcase is compatible with Chrome.
Comment 6 suggests this layout is spec compliant.
Please file a new bug if there is a newer CSS spec that says otherwise.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: