Closed Bug 182278 Opened 22 years ago Closed 22 years ago

Not recognizing CSS text-align and color rules for HR element.

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 38370

People

(Reporter: larry, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126

Mozilla is not recognizing the text-align and color rules for the HR element. In
my example, the HR should be aligned to the left and red. Mozilla is rendering
it centered and with default text color.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
The color issue is already reported (try setting the border and backround instead)

The alignment issue is odd. <hr> is a block, yet the page is in quirks mode,
which makes it somewhat inline-like....  Not sure what the expected rendering is
there (if any, since the quirk here is that <hr> simply does not follow the CSS
box model)
Whiteboard: DUPEME
in quirks mode, <hr> is an inline element (of sorts)
Text-align shouldn't work the way you're using it if HR is an inline or a block
-- if it's a block, you'd need margins, and if it's an inline you'd need to
specify the text-align for the containing block, not the HR itself.

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