Closed Bug 229637 Opened 21 years ago Closed 21 years ago

Horizontal rule can't be colored by using CSS (within style attribute for example)

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 190655

People

(Reporter: icusion, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 When taking a look at http://www.tweakersguide.de/index.php, you see several "news blocks". Surrounded my "border graphics", the news' title and it's content are divided by a horizontal rule, which should have the color #CCCCCC. It, however, is not being colored when surfing the site in Firebird. Reproducible: Always Steps to Reproduce: Create a (X)HTML document with a doctype of your choice. Add a horizontal rule that is colored (color of your choice) by CSS (within the style attribute) to the <body> tag. Example with red: <body> <hr style="color:#FF0000" /> </body> Actual Results: The horizontal rule is not colored and remains grey. Expected Results: Color it with the color given in the style attribute.
The color value should be set on background-color, I believe. ->Layout
Assignee: blake → other
Component: General → Layout
Product: Firebird → Browser
QA Contact: ian
Version: unspecified → Trunk
Thanks for the quick response. However, while trying to color the <hr> using the background-color attribute, I obviously found another "bug". When only using "color:#CCCCCC" or "color:#000000" within the style attribute, the browser (correctly?) doesn't color the horizontal rule with the color given but colors it with #8D8D8D (got that color by using a freeware program called "ColGet" for Windows). When using "background-color:#colorcode", it *does* color the rule, *however*, doesn't color it properly. I've tried this with several color codes and always took a look at the rule's resulting, real color. Here are the results: #000000 --> #606060 #FFFFFF --> #8D8D8D #CCCCCC --> #797979 #BBBBBB --> #717171 I am quite sure the program (ColGet) is working correctly, as the rule really doesn't look like #CCCCCC when adding it appropriately.
Yes. 'color' should work. You can use 'border' for now, as in: hr { border: solid orange; } *** This bug has been marked as a duplicate of 190655 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.