mrafiqk / html-pdf-node

187 stars 119 forks source link

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

Open roope-kvp opened 1 year ago

roope-kvp commented 1 year ago

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.
bugmaker1213 commented 4 months ago

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