Skip to content

Rendering improvements#3655

Merged
bsweeney merged 5 commits intomasterfrom
rendering-improvements
Sep 13, 2025
Merged

Rendering improvements#3655
bsweeney merged 5 commits intomasterfrom
rendering-improvements

Conversation

@bsweeney
Copy link
Copy Markdown
Member

@bsweeney bsweeney commented Sep 1, 2025

  • Improves column width calculation for tables with fixed layout
  • Uses resampling instead of scaling for background images
  • Fully supports alpha list numbering
  • Fixes potential loss of space between text nodes during reflow
  • Fixes counter resolution when contained in elements with a content-defined width

- Only use the fixed table layout algorithm if the table has a width.
- Calculate column widths using only the first row's cells.

see https://www.w3.org/TR/CSS2/tables.html#fixed-table-layout

fixes #2355
fixes #1432
The quality of the results from imagescale vary depending on the image type and scaling mode. imagecopyresampled appears to produce more consistent results.

fixes #3496
Before this change Dompdf would only resolve content for in-flow children of auto-width (content-defined width) parents. Because content resolution also resolves counters this was resulting in incorrect counter resolution for out-of-flow elements (e.g. position: absolute) inside auto-width parents.

fixes #3611
@bsweeney bsweeney force-pushed the rendering-improvements branch from fabfdf1 to 1d37671 Compare September 13, 2025 19:04
@bsweeney bsweeney merged commit cbe7db0 into master Sep 13, 2025
35 checks passed
@bsweeney bsweeney deleted the rendering-improvements branch September 13, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment