Skip to content

prevent header fillColor bleed when content color is "inherit"#2930

Closed
NadeemShadan wants to merge 1 commit intobpampuch:masterfrom
NadeemShadan:issue-2872-color-inheritence
Closed

prevent header fillColor bleed when content color is "inherit"#2930
NadeemShadan wants to merge 1 commit intobpampuch:masterfrom
NadeemShadan:issue-2872-color-inheritence

Conversation

@NadeemShadan
Copy link
Copy Markdown
Contributor

@NadeemShadan NadeemShadan commented Mar 30, 2026

Fixes #2872

  • Treat "inherit" as a style fallback value in StyleContextStack instead of passing it as a literal PDF color.
  • Prevents header table fillColor from affecting first content text after a page break.
  • Add unit tests for "inherit" resolution.

@liborm85
Copy link
Copy Markdown
Collaborator

liborm85 commented Apr 2, 2026

It is not directly related to the "inherit" color, but rather to any invalid color in general, see #2872 (comment).

@liborm85 liborm85 closed this Apr 2, 2026
@NadeemShadan
Copy link
Copy Markdown
Contributor Author

Thanks, makes sense. I agree the root cause is invalid color handling in general.

@NadeemShadan NadeemShadan deleted the issue-2872-color-inheritence branch April 2, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First item on a new page uses fillColor from the table in header

2 participants