Skip to content

Commit

Permalink
fix: first-letter pseudo element with float disappears when page brea…
Browse files Browse the repository at this point in the history
…k occurs in the parent paragraph

- fix #923
  • Loading branch information
MurakamiShinyu committed May 22, 2022
1 parent eb76c3f commit 99e9001
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/vivliostyle/layout.ts
Expand Up @@ -1075,7 +1075,10 @@ export class Column extends VtreeImpl.Container implements Layout.Column {
// relative', the absolute positioning of the float gets broken, since
// the inline parent can be pushed horizontally by exclusion floats
// after the layout of the float is done.
parent.viewNode.appendChild(nodeContext.viewNode);
if (!nodeContext.firstPseudo) {
// Unless float is specified on ::first-letter (Fix for issue #923)
parent.viewNode.appendChild(nodeContext.viewNode);
}
}

// box is rotated for vertical orientation
Expand Down

0 comments on commit 99e9001

Please sign in to comment.