Skip to content

Commit

Permalink
Merge pull request #1242 from vivliostyle/fix/issue1233
Browse files Browse the repository at this point in the history
fix: page breaking inside table with table-header may cause unexpected page type reset
  • Loading branch information
MurakamiShinyu authored Dec 4, 2023
2 parents 73066b2 + 7865dea commit 0761d9e
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 @@ -962,7 +962,9 @@ export class ViewFactory
if (
!pageType &&
!this.nodeContext.parent &&
this.nodeContext.shadowContext
(this.nodeContext.shadowContext ||
display === Css.ident.table_header_group ||
display === Css.ident.table_footer_group)
) {
// Keep currentPageType for shadowContext (Fix for issue #1233)
pageType = this.styler.cascade.currentPageType;
Expand Down

1 comment on commit 0761d9e

@vercel
Copy link

@vercel vercel bot commented on 0761d9e Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vivliostyle – ./

vivliostyle.vercel.app
vivliostyle-git-master-vivliostyle.vercel.app
vivliostyle-vivliostyle.vercel.app

Please sign in to comment.