Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,103
    • Issues 2,103
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #39756
Closed
Open
Issue created May 20, 2022 by Werner Pamler@wpamDeveloper

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.

iphtmlpanel

firefox

Cause

This issue probably is caused by issue #37931 (closed) which introduced drawing opaque text.

Edited May 21, 2022 by Werner Pamler
Assignee
Assign to
Time tracking