I've found some files that take too long to convert to be reasonable. From one of them (the Project Gutenberg edition of The Brothers Karamazov), I could create this test file:
If I remove almost anything in the CSS styles, it converts instantly, but as it is, it remains some minutes at 100% CPU load until I kill the process.
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<style type="text/css">
body {
margin: 4ex 10%;
text-align: justify;
}
span {
position: absolute;
left: 1%;
}
</style>
</head>
<body>
<p>The old man fairly fluttered with joy, as though nothing more comforting
could have been said to him. In his delight he seized <span>[pg 154]</span>
Alyosha's hand and pressed it warmly to his heart. Tears positively glittered in
his eyes.</p>
</body>
</html>
If I remove almost anything in the CSS styles, it converts instantly, but as it is, it remains some minutes at 100% CPU load until I kill the process.