Closed Bug 136416 Opened 22 years ago Closed 22 years ago

An HTML HR is not constrained to its containing DIV

Categories

(Core :: Layout, defect, P2)

x86
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 84887
Future

People

(Reporter: stephen.moehle, Assigned: attinasi)

References

()

Details

(Keywords: testcase)

Attachments

(3 files)

On a page with two side-by-side DIVs and one of the DIVs has an HR element, the
HR will extend across the entire page rather than being constrained to the
containing DIV.  I think this is wrong.  So evidently does the person who wrote
the Blogging software used by EFF.

I will attach a simplified testcase which looks fine in IE6 and NN4 but not in
Mozilla.

Tested with Mozillla trunk 2002-04-09-03 on Win2000.
Attached file Simplified testcase
Changing QA contact
QA Contact: petersen → moied
Confirmed with build 20020416 on winXp
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Priority: -- → P2
Target Milestone: --- → Future
Keywords: testcase
Adding colours to the previous test file shows the HR is correctly the width of
it's parent DIV, but that the DIVs are not side by side.
So the DIVs are not side by side as blue is a float and does not affect the box
of red ... so should the HR count as a line box (and act as the text does and
flow around the float) or a block box as it seems to now?
HR is a block level element according to my HTML 4.01 sidebar so the testcase
give which has strict DOCTYPE seems to be correct behaviour.  Taking out the
doctype gives the behaviour that the reporter expects.  So I think this bug
should be closed INVALID.

*** This bug has been marked as a duplicate of 84887 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: