Repository navigation
HTML to PDF 0.3.0 — CSS1 floats and W3C PDF witness
The native PHP converter now renders the unchanged W3C CSS1 test5526c.htm document as a one-page tagged PDF, with nested left/right floats, clearance, percentage widths, fixed-height boxes, independent borders and the page canvas.
Download the generated PDF · English guide · Guide français
- Explicit CSS font-family catalog and supported
fontshorthand, including inheritance and reset behavior. Font bytes remain caller supplied. - Optional
FormControls::StaticSnapshotfor inline radio controls, with vector appearance and noninteractive PrintField structure. No scripts, submission or interactive PDF fields. - Original W3C source and reference preserved with hashes, provenance and BSD notices. Lato is supplied explicitly as the declared sans-serif fallback.
- Unsupported float combinations are rejected explicitly: documents exceeding one page, missing widths, tables, parent/child margin collapse, decorated normal-flow boxes overlapping earlier floats, and floats inserted after inline content in the same container.
CSS1 remains incomplete: 49 requirements are partial and 13 unsupported. This selected witness does not qualify the whole CSS1 suite, PDF/A or PDF/UA. Font rasterization and radio artwork are outside the pixel comparison; source text and clearance are verified separately.
Validation on the exact release candidate: 542 tests / 1,459 assertions on each of PHP 8.3, 8.4 and 8.5; static analysis, formatting, Composer/platform/audit checks; five byte-identical PDFs across runtimes; qpdf, pypdf and Poppler; eight visually inspected pages. Chromium 151 and Firefox 153 each pass 426 existing style comparisons and 63 historical W3C checks. The native W3C PDF has zero mismatches over 776,877 independently checked opaque-color pixels. Negative oracle tests reject altered source, geometry and text maps.
Exact-candidate CI. Validation logs, hashes, tool versions, rendered pages and independent reports are attached.
Le moteur PHP autonome convertit désormais le document W3C CSS1 test5526c.htm inchangé en un PDF balisé d'une page : flottants imbriqués gauche/droite, dégagement, largeurs en pourcentage, hauteurs fixes, bordures indépendantes et fond de page.
Les familles CSS sont choisies dans un catalogue de fontes fourni explicitement. Les boutons radio demandent l'option FormControls::StaticSnapshot et restent statiques. Les combinaisons hors du profil de flottants sont refusées avec une erreur explicite ; elles sont détaillées dans le guide FR/EN.
CSS1 n'est pas terminé : 49 exigences sont partielles et 13 non prises en charge. Ce témoin précis passe les contrôles indépendants ; il ne constitue pas une qualification de toute la suite CSS1, PDF/A ou PDF/UA. Les cinq PDF sont identiques entre PHP 8.3, 8.4 et 8.5 ; les preuves et les huit pages rendues sont jointes.