-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
li marker position issue when a superscript is present. #2253
Comments
Thanks a lot for the bug report and the examples. |
This bug appears because in WeasyPrint, markers are absolutely positioned boxes: vertically they are positioned to be on the left of the content of the Both positions are wrong in some cases. Horizontally, it’s explained in #1557, padding breaks the assumption. And vertically, well … you’ve just found the bug. Subscript doesn’t break the rendering because we still want to put the marker at the top of the The clean solution would be to position markers manually, not using some dirty hidden CSS rules. We can actually do what we want, as "CSS does not specify the precise location of the marker box or its position in the painting order", but we should try to manually do what other browsers do. A workaround is to add |
@liZe Thanks for the explanation and workaround. |
The marker position for
li
differs whensup
(superscript) is present. There are no such issues withsub
(subscript).Example screenshots:
Test HTML:
Sample PDF generated with WeasyPrint
62.3
:li.pdf
The text was updated successfully, but these errors were encountered: