Here's a tricky one: I've got a request to style text which appears in a running footer with outlined text. This text must contain, among other things, a CSS counter indicating the current page number, and a CSS string indicating the name of the current chapter.
As far as I can tell, these requirements are mutually exclusive in Prince as it stands.
I can get the CSS counters and strings into the running footer by using the "content" properly on an HTML element. However, Prince doesn't support the text-stroke CSS property, and none of the usual browser workarounds (e.g., multiple offset text-shadows) work in Prince because they rely on pixel-perfect positioning which cannot be achieved in a PDF.
Conversely, I can get outlined text into the running footer using an inline SVG containing a <text> element with a stroke colour, but no fill colour. However, the SVG <text> element does not support the "content" CSS property, so there's no obvious way to get CSS counters or strings into an inline SVG.
Is there possibly some workaround I'm overlooking?
As far as I can tell, these requirements are mutually exclusive in Prince as it stands.
I can get the CSS counters and strings into the running footer by using the "content" properly on an HTML element. However, Prince doesn't support the text-stroke CSS property, and none of the usual browser workarounds (e.g., multiple offset text-shadows) work in Prince because they rely on pixel-perfect positioning which cannot be achieved in a PDF.
Conversely, I can get outlined text into the running footer using an inline SVG containing a <text> element with a stroke colour, but no fill colour. However, the SVG <text> element does not support the "content" CSS property, so there's no obvious way to get CSS counters or strings into an inline SVG.
Is there possibly some workaround I'm overlooking?
