Skip to content

Commit

Permalink
fix: Top margin of floats at page start should be kept
Browse files Browse the repository at this point in the history
  • Loading branch information
MurakamiShinyu committed Mar 3, 2024
1 parent 349edc9 commit 6c1fb7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/vivliostyle/vgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,9 @@ export class ViewFactory
const unforcedBreak = breakType === "auto";
if (
(marginBreak === Css.ident.discard && anyBreak) ||
(marginBreak !== Css.ident.keep && unforcedBreak)
(marginBreak !== Css.ident.keep &&
unforcedBreak &&
!this.nodeContext.floatSide)
) {
Break.setMarginDiscardFlag(result, "block-start");
}
Expand Down

0 comments on commit 6c1fb7f

Please sign in to comment.