xhtml2pdf
xhtml2pdf copied to clipboard
CSS class combine with element will cause qualifier match error
Here is the sample HTML
The result will apply 10px on both <p>
element
The expect result should be Hello1
with font-size 10px, and Hello2
with font-size 30px
<html>
<head>
<title>PDF</title>
<style>
.type1 .test p {
font-size: 10px;
}
.type2 .test p {
font-size: 30px;
}
</style>
</head>
<body>
<div class='type1'>
<div class="test">
<p>Hello1</p>
</div>
</div>
<div class='type2'>
<div class="test">
<p>Hello2</p>
</div>
</div>
</body>
</html>
Test ENV: xhtml2pdf 0.0.6 python 2.7