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 85abf4f
Browse filesBrowse the repository at this point in the historyBrowse files
Apply descendant rules through inline ancestors and blocks inside table cells (mpdf#830)
The legacy engine only looks for the ancestors a descendant rule names
among the blocks and table parts that open a level of its rules, so
span em, or .note b for a <span class="note">, never applied, nor div b
for a div inside a table cell, nor table tbody td where the tbody is
left out.
Each descendant rule the legacy parser stores is compiled too. The
matcher applies it only to an element with an ancestor that opened no
level, and only where the legacy engine could not match it, so nothing
is applied twice and the order the legacy engine gives the rest stays.
Each open element's frame records whether it opened a level, as the
merger reports when it styles the element.
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
@@ -93,6 +93,7 @@ New features
93
93
### CSS selectors
94
94
95
95
***Child and sibling combinators, and structural pseudo-classes.**`div > p`, `h1 + p`, `h1 ~ p`, and `:first-child`, `:nth-child()`, `:first-of-type` and `:nth-of-type()` on any element, are matched against the elements open around the one being styled. Rules using them were dropped before, so a document that has them changes. They are applied with the descendant rules, after them, in order of specificity and then of source order. [mpdf/mpdf#7][mpdf/mpdf#318][#538][#620]
96
+
***Descendant rules through inline elements.** A descendant rule whose ancestor is an inline element, a block inside a table cell, or the `tbody` a table leaves out, such as `span em`, or `.note b` for a `<span class="note">`, applies. [mpdf/mpdf#830][#538]
96
97
97
98
Performance
98
99
-----------
@@ -325,6 +326,7 @@ These changes do not change output.
0 commit comments