Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Feb 18, 2020
1 parent fe54a79 commit 0e53863
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions incompatiblities/target-counter-url/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Using target-counter() does not work.
Expected output: "Page 1 of 2", "Page 1 of 2"...

- PrinceXML: https://www.princexml.com/forum/topic/4353/target-counter-not-working?p=1#21826
- Weasyprint: https://github.com/Kozea/WeasyPrint/issues/1062#issuecomment-587002402
- Weasyprint: https://github.com/Kozea/WeasyPrint/issues/1062#issuecomment-587002402

The workaround for PrinceXML is to inline the `content:` within the HTML.
The workaround for PrinceXML is to inline the `content:` within the HTML.
For Weasyprint you need some invisible CSS: https://github.com/Kozea/WeasyPrint/issues/1062
Binary file modified incompatiblities/target-counter-url/ah.pdf
Binary file not shown.
Binary file modified incompatiblities/target-counter-url/pdfreactor.pdf
Binary file not shown.
Binary file modified incompatiblities/target-counter-url/prince.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions incompatiblities/target-counter-url/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
page-break-after: always;
}

/* needed by Weasyprint ihttps://github.com/Kozea/WeasyPrint/issues/1062 */
div::before {
content: target-counter(url(#end), page);
display: none;
}

@page {
@bottom-center {
font-size: 12pt;
Expand Down
Binary file modified incompatiblities/target-counter-url/wp.pdf
Binary file not shown.

0 comments on commit 0e53863

Please sign in to comment.