xhtml2pdf icon indicating copy to clipboard operation
xhtml2pdf copied to clipboard

CSS class combine with element will cause qualifier match error

Open Falldog opened this issue 8 years ago • 0 comments

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

Falldog avatar Jun 02 '16 12:06 Falldog