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 on ::first-letter causes "TypeError: Cannot read properties of null" #1286

Open
MurakamiShinyu opened this issue Feb 22, 2024 · 0 comments
Labels

Comments

@MurakamiShinyu
Copy link
Member

Page float specified on ::first-letter pseudo-element causes "TypeError: Cannot read properties of null (reading 'firstPseudo')".

Example:

<style>
p::first-letter {
  float: top;
  float-reference: page;
}
</style>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit.</p>

Test with Vivliostyle Viewer (v2.27.0):
https://vivliostyle.github.io/viewer/v2.27.0/#src=https://gist.githubusercontent.com/MurakamiShinyu/073b773d08910334acc4e337d15f95cf/raw/page-float-on-first-letter.html

Screenshot:
Screenshot 2024-02-22 14 42 36

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