mrafiqk/html-pdf-node

CSS pseudo-elements broken when HTML is sent as a string

Opened this issue · 1 comments

Possibly related to #99
Steps to reproduce

  1. Create a HTML that loads a CSS. The HTML/CSS should have some styling with ::before or ::after.
  2. Feed this HTML through {content: html}
  3. BUG: Styling generally works but pseudo-elements don't work.
  4. FIX: Put the same HTML somewhere where it can be fetched through HTTP and call it with {url: "<url>"}. Now CSS works.

Hello, I have the same problem. How do you make pseudo-elements work properly?
@roope-kvp ,Look forward to hearing from you.