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

Page float with footnote may cause error "Error: No PageFloatLayoutContext for region" #1353

Open
MurakamiShinyu opened this issue Jun 21, 2024 · 3 comments
Labels

Comments

@MurakamiShinyu
Copy link
Member

MurakamiShinyu commented Jun 21, 2024

Test case:
https://gist.githubusercontent.com/MurakamiShinyu/dd49bcd1a882883299bab9d8c256a2c5/raw/test.html

      figure {
        float-reference: page;
        float: block-start;
      }

Test with Vivliostyle Viewer v2.30.1:
https://vivliostyle.github.io/viewer/v2.30.1/#src=https://gist.githubusercontent.com/MurakamiShinyu/dd49bcd1a882883299bab9d8c256a2c5/raw/test.html

Screenshot:
Screenshot 2024-06-28 11 32 38

@MurakamiShinyu MurakamiShinyu changed the title Page floats may cause error "Error: No PageFloatLayoutContext for region" Page float with footnote may cause error "Error: No PageFloatLayoutContext for region" Jun 26, 2024
@MurakamiShinyu
Copy link
Member Author

This error occurs when footnote is used in page float. e.g.:

    figure {
      float-reference: page;
      float: block-start;
    }

    .footnote {
      float: footnote;
    }
  <figure>
    <img
      src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Gustave_Moreau_006.jpg/200px-Gustave_Moreau_006.jpg"
      alt="">
    <figcaption>
      ギュスターヴ・モロー1868年作『プロメテウス』。神話の共通テーマ
      「火」を代表する物語である<span
        class="footnote">世界神話事典 p.129、吉田</span></figcaption>
  </figure>

@MurakamiShinyu
Copy link
Member Author

MurakamiShinyu commented Aug 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant