I'm having trouble with converting an HTML file to PDF when the html file contains elements with display: inline-block. It seems like if there are to many inline-block elements following each other the converter doesn't know when to go to the next line.
Could someone explain why this is happening? Am I not setting the page size correctly in the code and that's why this is occurring? I attached the program, input, and output files.