Closed Bug 253651 Opened 21 years ago Closed 21 years ago

CSS coloring doesn't work for HR element (horizontal rule)

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 190655

People

(Reporter: vbnetprogramer, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040729 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040729 In the page at http://k2pts.home.comcast.net/gbaguy/ , near the bottom, the horizontal rule (HR element) should be green. The CSS code "color: green;" is used to do this, and it should render as if the color attribute was used in the tag; however, it shows up as the default gray. Reproducible: Always Steps to Reproduce: 1. Create a stylesheet like so (called perhaps "style.css"): hr { color: green; } 2. Create HTML file: <html> <link rel="stylesheet" href="style.css" type="text/css" /> <hr /> </html> 3. Open in Mozilla Actual Results: The horizontal rule is still the default grey. Expected Results: The CSS color: green, should have been applied. One can take a look at Internet Explorer 6 to see the expected result first hand.
The first paragraph of the description should say: In the page at http://k2pts.home.comcast.net/gbaguy/ , near the bottom, the horizontal rule (HR element) should be green. The CSS code "color: green;" is used to do this, and it should render as if the color attribute was used in the tag; however, it shows up as the default gray.
(In reply to comment #1) > The first paragraph of the description should say: > > In the page at http://k2pts.home.comcast.net/gbaguy/ , near the bottom, the > horizontal rule (HR element) should be green. The CSS code "color: green;" > is used to do this, and it should render as if the color attribute was used > in the tag; however, it shows up as the default gray. Forgot to actually modify it to be right *embarrassed*. The page mentioned should be http://k2pts.home.comcast.net/gbaguy/ch2.htm (same as the URL field)
You're seeing the border of the <hr>. So setting the border-color will work... *** This bug has been marked as a duplicate of 190655 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
The HR color styling issue is definitly not a duplicate of bug 190655 (read this exactly).
You need to log in before you can comment on or make changes to this bug.