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 7ec4efc
Browse filesBrowse the repository at this point in the historyBrowse files
Carry decorations into a block opened inside an inline element, and leave a decoration unseen in inherited transparent
A block inside an underlined span now starts from the span's text state, which #653 sets aside, so it and the text after it are underlined. TextDecorations::seen() reads #651's transparent flag, so a descendant that inherits color: transparent adds no decoration of its own either.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG-GRAVITYPDF.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,8 @@ Read this section before upgrading from upstream mPDF. Each entry says what chan
70
70
***Text decorations propagate to descendants instead of being inherited**, as in a browser. A link styled `a { text-decoration: none }` inside an underlined paragraph now has the paragraph's underline drawn under it. Set `'cssMode' => \Mpdf\CssMode::LEGACY` to keep the old output, or move the `text-decoration` from the paragraph to the parts of it you want decorated. [#544][#654]
71
71
* An underline, overline or line-through is drawn over the text of every descendant in the flow, in the colour and at the size of the element that set it. A child block used to redraw it in its own colour and size, and lost an overline.
72
72
*`text-decoration: none` on a descendant removes only a decoration of its own. A descendant's own decoration is added to its ancestors': `line-through` inside an underlined block is drawn with both lines.
73
-
* An element whose `color` is `transparent` adds no decoration of its own, since it would be drawn in that colour.
73
+
* An element whose `color` is `transparent`, set or inherited, adds no decoration of its own, since it would be drawn in that colour.
74
+
* A block inside an underlined inline element, as in `<span style="text-decoration: underline">…<div>…</div>…</span>`, is underlined too, as is the text after it up to the element's end tag.
74
75
* Floats, positioned blocks and inline blocks no longer take the decorations of the element they are in. Tables never did.
75
76
* A child block no longer takes its parent's `vertical-align`, which is not inherited.
0 commit comments