jlandure / alpine-chrome

Chrome Headless docker images built upon alpine official image
https://hub.docker.com/r/zenika/alpine-chrome
Apache License 2.0
1.89k stars 245 forks source link

Bug on px scale (Version 117) #256

Open DemetrioG opened 3 months ago

DemetrioG commented 3 months ago

Describe the bug I have a service with alpine-chrome and puppeteer to generate pdf reports. Previously i use zenika/alpine-chrome:115 at my Dockerfile and in my package.json i use 21.0.0 version of puppeteer. This service open window with puppeteer and generate pdf with html content that i passed.

I update version of zekina/alpine-chrome from 115 to 117 and passed the same html in both versions, but in 117 version the header and footer became much smaller than 115 version. I keep puppeteer in 21.0.0 version in both.

Header and Footer that i passed to puppeteer in both versions is: <div style='border: 1px solid red; font-size: 20px;'><span>Test</span></div>

zenika/alpine-chrome:115.pdf zenika/alpine-chrome:117.pdf

What is the expected behavior? Is expected in both versions have the same scale for passed html.

What is the actual behavior? The header and footer is smaller than older version with the same html.

Versions

Software Version(s)
zenika/alpine-chrome 117
puppeteer 21.0.0
node 18.17.0-alpine