Skip to content

Commit

Permalink
fix: break-before specified on floats may not work
Browse files Browse the repository at this point in the history
- fix #1288
  • Loading branch information
MurakamiShinyu committed Feb 24, 2024
1 parent ebcc38a commit 06890fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/vivliostyle/layout.ts
Expand Up @@ -2736,6 +2736,10 @@ export class Column extends VtreeImpl.Container implements Layout.Column {
if (!lastAfterNodeContext) {
return false;
}
// Exclude if itself is a float (Issue #1288)
if (nodeContext.floatSide) {
return false;
}
for (let nc = lastAfterNodeContext; nc?.parent; nc = nc.parent) {
let node = nc.after ? nc.viewNode : nc.viewNode?.previousSibling;
while (
Expand Down

0 comments on commit 06890fe

Please sign in to comment.