You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 923a3a0
Browse filesBrowse the repository at this point in the historyBrowse files
Track the stack of open elements while HTML is written
WriteHTML() keeps a frame for each element open in the HTML it reads:
its tag, id, classes, language and attributes, its position among its
siblings and among those of its tag, and a record of the siblings
closed before it. Selectors that look at ancestors and siblings will
read it through Mpdf::getOpenElements().
It follows real tokens only, so forced page breaks leave it alone. It
is put back with the rest of the state when a page-break-inside: avoid
block unwinds. Headers, footers and the index set the flow's stack aside,
and a positioned block's content is written against the stack as it
stood inside the block.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG-GRAVITYPDF.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -356,6 +356,7 @@ These changes do not change output.
356
356
* The coding standard and PHPStan run as one Lint workflow. The e-invoice and PDF/X-4 checks run on a pull request only when it changes the code they cover.
357
357
***PHPStan.** Fixes for newer PHP versions and PHPStan 2.2.15. [#6][#295][#319][#451]
358
358
***Branch alias.** The Composer branch alias maps `dev-gravitypdf` to `8.x-dev`. [#3]
359
+
***Open elements.**`WriteHTML()` keeps a stack of the elements open in the HTML it reads, so that CSS rules can be matched against an element's parents, ancestors and earlier siblings rather than only the blocks mPDF lays out. Each element carries its position among its siblings and a record of the siblings before it. `Mpdf::getOpenElements()` reads it. [#533]
0 commit comments