Have found a problem with the
CSS nth-child selector behaviour in EO.Pdf (across multiple versions and also on current version)
When rendering the html below in Chrome, Firefox or Edge it renders every third line red on green background. However, EO.Pdf gets it wrong for the nth-child CSS selector showing changing the 2nd paragraph as green and then repeating every third line. The
nth-of-type selector does work as expected.
Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style type="text/css">
p { background-color: aliceblue; }
p:nth-child(3n) { background-color: yellowgreen; }
p:nth-of-type(3n) {color: red; }
</style>
</head>
<body>
<p>1</p>
<p>2</p>
<p>3!</p>
<p>4</p>
<p>5</p>
<p>6!</p>
<p>7</p>
<p>8</p>
<p>9!</p>
</body>
</html>