Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to change asciidoctor-web-pdf's headless chrome to firefox. #696

Open
Robot-Nachos opened this issue Oct 20, 2023 Discussed in #695 · 0 comments
Open

Allow users to change asciidoctor-web-pdf's headless chrome to firefox. #696

Robot-Nachos opened this issue Oct 20, 2023 Discussed in #695 · 0 comments

Comments

@Robot-Nachos
Copy link

Discussed in #695

Originally posted by Robot-Nachos October 15, 2023
Is it possible change out the headless chrome that asciidoctor-web-pdf uses for Firefox? I have a document that makes use of -webkit-text-stroke and paint-order is necessary to draw the outline behind the text, instead of in front of it. Chrome doesn't support paint-order for HTML text correctly, but Firefox does. I haven't had any luck faking similar results using text shadows or similar methods.

My understanding is that once you've enabled Firefox with PUPPETEER_PRODUCT=Firefox yarn add puppeteer you just need to add ({ product: 'firefox' }) after puppeteer.launch. I tried doing that in browser.js but it results in a timeout error from puppeteer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant