WeasyPrint
WeasyPrint copied to clipboard
::marker don't respect trailing spaces
<style>
.markers::marker { content: '- '; }
.marker::marker { content: '-'; }
.pre { white-space: pre; }
</style>
<ul>
<li class="markers">Item content: '- '; </li>
<li class="markers pre">Item content: '- '; white-space:pre;</li>
<li class="marker">Item content: '-'; </li>
</ul>
Firefox / Chromium rendering:
- Item content: '- ';
- Item content: '- '; white-space:pre;
-Item content: '-';
Weasyprint rendering
-Item content: '- ';
- Item content: '- '; white-space:pre;
-Item content: '-';
I just wanted to make an issue, but I guess it would be a duplicate:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>List</title>
<style>
ol.custom {
counter-reset: olcnt;
> li {
counter-increment: olcnt;
&::marker {
content: counter(olcnt) '. ';
}
}
}
ul.custom {
> li::marker {
content: '. ';
}
}
</style>
</head>
<body>
<ul>
<li>Hello</li>
<li>World</li>
</ul>
<ol>
<li>Hello</li>
<li>World</li>
</ol>
<ul class="custom">
<li>Hello</li>
<li>World</li>
</ul>
<ol class="custom">
<li>Hello</li>
<li>World</li>
</ol>
</body>
</html>
Browser:
Weasyprint:
I just wanted to make an issue, but I guess it would be a duplicate:
Yes, it is.