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)
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.
Comment 1•12 years ago
|
||
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)
| Reporter | ||
Comment 2•12 years ago
|
||
Flags: needinfo?(josecore.jgj)
| Reporter | ||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
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.
Comment 5•12 years ago
|
||
border-collapse tables are complicated though, Boris do you agree we render this correctly?
Comment 6•12 years ago
|
||
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
Comment 7•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•