Pseudo-element :after not working anymore after upgrading 'openhtmltopdf' to v1.0.10

185 Views Asked by At

I'm working on a project, where we use thymeleaf to design .html files. These are being transformed to pdf using danfickles pure-Java library. Because the framework doesn't support CSS3 features, one has to work a lot with tables and such.. In our case we used to "clean up" after specific elements, decorating them with

.icon-headline:after {
  content: "";
  display: table;
  clear: both;
}

This was used to make sure, float: left and such were cleared so they wouldn't interfere each other. This, let me call it, "small hack" doesn't work anymore. I noticed in the patchnotes a line about

#711 (mixed) Better boxing for ::before and ::after content. Should now be able to define a border around pseudo content correctly.

Full patchnotes can be found Openhtmltopdf github repo

I'm now looking for a way to reproduce this behavior. Maybe anyone has got any tip and I hope I made it clear what the problem is. If not I'm happy to clarify further.

Thanks in advance, Ayume

0

There are 0 best solutions below