Closed Bug 1037 Opened 26 years ago Closed 25 years ago

border-color-left,right,top,bottom broken

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: karnaze, Assigned: peterl-retired)

References

()

Details

The following renders all sides with the same color. It should have the
appearance of an inset or outset (with adjacent color boundaries at 45%).

<html>
<body>
<DIV style="width: 30px; height: 30px; border-color:
red,black,red,black;"></DIV>
<DIV style="width: 30px; height: 30px; border-color-left: red; border-color-top:
black; border-color-right: red; border-color-bottom: black;"></DIV>
</body>
</html>
border: 5px solid; needs to be added to example DIVs
Setting all current Open/Normal to M4.
QA Contact: 4110
setting ChrisD as QA assigned to
Here is the complete, revised example

<html>
<body>
<DIV style="border: 10px solid; width: 30px; height: 30px; border-color:
red,black,red,black;"></DIV>
<DIV style="border: 10px solid; width: 30px; height: 30px; border-color-left:
red; border-color-top:
black; border-color-right: red; border-color-bottom: black;"></DIV>
</body>
</html>
Assignee: michaelp → kmcclusk
Status: ASSIGNED → NEW
Target Milestone: M4 → M5
Assignee: kmcclusk → beard
Target Milestone: M5 → M6
Patrick, It's assigned as a compositor bug so I'm giving it to you. I would
double-check to make sure the CSSRendering border rendering code is doing the
right thing first. I'm not sure who determined it was a compositor bug. If the
border rendering code is not doing the right thing re-assign to Peter Linss.
Status: NEW → ASSIGNED
Component: Compositor → Style System
This is apparently a style system bug -- when nsCSSRendering::PaintBorder is
called from nsBlockFrame::Paint, aBorderStyle.mBorderColor = { 0xFF000000,
0xFF000000, 0xFF000000, 0xFF000000 } (all black). So, something's going wrong
elsewhere.
Assignee: beard → peterl
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Try "border-left-color" etc instead. "border-color-left" is NOT a valid CSS
property.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Reopening bug with the following test case:

http://slip/projects/marvin/css/border_color_4_values.html

Tested with 4/13 build on Win NT, Win 95, Win 98
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → INVALID
This is STILL an invalid test case. The initial style of border is 'none'.
Merely setting the color does nothing unless a border style is specified.
Status: RESOLVED → REOPENED
The revised test case in the 3/11 comments specifies a border style of "solid".
Sorry, I should have looked at all of the comments. Since I can't access slip
from home here is another example. The border colors in the 2nd div work just
fine, but those in the 1st don't. Is the syntax right here?

<html>
<body>
<DIV style="border: 10px solid; width: 30px; height: 30px; border-color:
red,black,orange,green;"></DIV>
<DIV style="border: 10px solid; width: 30px; height: 30px;
  border-left-color: red;
  border-top-color: black;
  border-right-color: orange;
  border-bottom-color: green;"></DIV>
</body>
</html>
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
No. The syntax in the first DIV is wrong, commas are not allowed, just use
whitespace.
I revised the test to give border a style of 'solid' (sorry about that). If this
is valid, please clear the resolution and reopen the bug.
Status: RESOLVED → VERIFIED
Verifying bug invalid. URL provided displays colors properly.
You need to log in before you can comment on or make changes to this bug.