-
Notifications
You must be signed in to change notification settings - Fork 548
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
table-cell float:left fails PDF generation #276
Comments
@gerpres Wow, thank you for the reproducible example. It helps a lot. UPD Sorry, could not find a solution in 9.6.0, will try in 9.6.1 |
@gerpres May I ask WHY do you want to use
P.S. I still see a small difference with and without "float: left": |
... even if they have style "float: left" or "float:right". Marking style "float: left" to <td> element caused ClassCastException: we generated AnonymousBlockBox instead of TableCellBox for such element. But AFAIK this style is not applicable for table elements: > However, applying "float: left" to a table cell ( element) doesn't have any direct effect because table cells are part of a table layout system which doesn't interact with floats in the same way as block-level elements.
... even if they have style "float: left" or "float:right". Marking style "float: left" to <td> element caused ClassCastException: we generated AnonymousBlockBox instead of TableCellBox for such element. But AFAIK this style is not applicable for table elements: > However, applying "float: left" to a table cell ( element) doesn't have any direct effect because table cells are part of a table layout system which doesn't interact with floats in the same way as block-level elements.
thx for your efforts @asolntsev. I'll give it a try ASAP>
I'm aware that floats on cells are not intended. actually it's because of an unintended re-use of an existing CSS class in a framework-like-application, where an existing selector adds this float-styling. of course the selector could be modified to avoid applying floats on cells, but I was surprised that PDF generation fails due to such a styling. |
for whatever-reason, a HTML/CSS I cannot fully control, applies float:left to a table-cell.
this results in the cell being rendered not as table-cell, but block.
this fails PDF generation with following error:
see following test:
PdfTest.txt
The text was updated successfully, but these errors were encountered: