Closed Bug 265463 Opened 20 years ago Closed 20 years ago

<hr> tag does not align left (as the default) when a right aligned table is present

Categories

(Core :: Layout, defect)

Other Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 244932

People

(Reporter: palmer, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Build Identifier: 

When using the <hr> tag between paragraphs where a right-aligned table is 
present, the horizontal rule tries to align right. This does not happen when 
rendered in IE.

Reproducible: Always
Steps to Reproduce:
1.Create an html page with a few paragraphs of Lorem Ipsum text.
2.Insert a right aligned table with a width of 200 and 50 rows so that the 
paragraphs are on the left and the table is on the right.
3.Insert a horizontal rule between a couple of the paragraphs.

Actual Results:  
When viewing in Firefox, the horizontal rule is not aligned left and appears 
to be trying to align right. The horizontal rule displays over the table and 
does not extend all the way to the left of the page. When the same file is 
previewed in IE, the horizontal rule appears to be rendering properly. In 
order for the <hr> to display properly in Firefox, I need to add the 
attribute "align='left'" to the <hr> tag.

Expected Results:  
The horizontal rule should be aligned left as the default without having to 
add the "align='left'" attribute.
Assignee: firefox → nobody
Component: General → Layout
Keywords: qawanted
Product: Firefox → Browser
QA Contact: firefox.general → core.layout
Version: unspecified → Other Branch
Reporter, could you show an example or attach a testcase? 
This could be a duplicate of bug 244932.
Attached is the test file I created to test the difference in rendering the
<hr> tag between Firefox and IE.
Attachment #162869 - Attachment mime type: text/plain → text/html
Yes, this is a duplicate. Thanks for the testcase, though.
You can work around this problem in Mozilla by adding something like this in
your stylesheet:

hr[size="1"]{
border: 2px solid transparent;
border-top: 1px -moz-bg-solid;
margin-right:2px;
}

*** This bug has been marked as a duplicate of 244932 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Keywords: testcase
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Keywords: qawanted
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: