Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top margin at unforced page break not truncated correctly #1279

Closed
MurakamiShinyu opened this issue Feb 16, 2024 · 1 comment · Fixed by #1280
Closed

Top margin at unforced page break not truncated correctly #1279

MurakamiShinyu opened this issue Feb 16, 2024 · 1 comment · Fixed by #1280
Assignees
Labels

Comments

@MurakamiShinyu
Copy link
Member

Test sample: margin-break-test1.html

<style>
  @page {
    size: 460px;
    margin: 50px;
    outline: dotted 1px;

    @top-center {
      font-size: 10px;
      content: "Page " counter(page);
    }
  }

  section {
    break-before: page;
  }
</style>
<body>
  <section>
    <h1>H1</h1>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
    <p>P</p>
  </section>
</body>

The top margin of P must be truncated at unforced page break. It was correct until v2.22.3 but there has been a problem from v2.22.4 to the present (v2.27.0).

Test with Vivliostyle Viewer:

Screenshots

v2.22.3 (good) and v2.27.0 (bad):

Screenshot 2024-02-16 22 42 48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant