IpHtmlPanel: incorrect text background color in table when cell bgcolor is different from row bgcolor.
- Lazarus/FPC Version: probably since v2.0
- Operating System: any
- CPU / Bitness: any
What happens
This issue was first reported in forum discussion https://forum.lazarus.freepascal.org/index.php/topic,59390.msg442773.html#msg442773 by user soner.
The html text in "steps to reproduce" displays a table. Its (single) row has a yellow background color, the right-most cell a red background color; The text in this color is displayed by the IpHtmlPanel with yellow background.
What did you expect
The text background should be red, or the text should be transparent.
Steps to reproduce
Load the following html text into htmlfilexplorer1
demo (in folder components/turbopower_ipro/examples
of the Lazarus installation).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<table border="1" cellspacing="0">
<tr bgcolor="yellow">
<td>abc</td>
<td>def</td>
<td bgcolor="red">Test</td>
</tr>
</table>
</body>
</html>
The attached screenshots are from this demo and from Firefox.
Cause
This issue probably is caused by issue #37931 (closed) which introduced drawing opaque text.
Edited by Werner Pamler