Closed Bug 940287 Opened 12 years ago Closed 12 years ago

Opacity on a td causes the border to render with the same color as the td background

Categories

(Core :: Layout: Tables, defect)

27 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: josecore.jgj, Unassigned)

Details

(Keywords: testcase, Whiteboard: [INVALID?])

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release) Build ID: 20131112160018 Steps to reproduce: Table with td element with white border bottom and red background. When setting the opacity of that td to something between 0 and 1, the border changes to red with the opacity applied. <table style="border-collapse: collapse"> <tr> <td style="border-bottom: 2px solid white; background-color: black;opacity: 0.5">aaaaaaaaaaaaaaa</td> </tr> <tr> <td style="border-bottom: 2px solid white; background-color: black;opacity: 0.5">aaaaaaaaaaaaaaa</td> </tr> </table> Actual results: The border changes to red. Expected results: The border remains white.
Please upload a complete HTML file that demonstrates the problem (use the "Add an attachment" link on the bug). The snippet in the Description doesn't use any red color.
Flags: needinfo?(josecore.jgj)
Attached file html test case
Flags: needinfo?(josecore.jgj)
Attached image image
Attached file Testcase
Here's a clearer testcase that shows that we paint the background half-way under the border and apply opacity to that area. I think this is the correct rendering. IE10 on Win8 does the same. Chrome 33 on Linux only paints the background to where the border starts in the first cell. That seems wrong, 'opacity' shouldn't affect the extent of the background like that. So I think this is just a bug in Chrome.
border-collapse tables are complicated though, Boris do you agree we render this correctly?
Flags: needinfo?(bzbarsky)
Keywords: testcase
Whiteboard: [INVALID?]
Yes, I do. Jose, please do report the bug to the Chrome folks!
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Flags: needinfo?(bzbarsky)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: