-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Bug]: Very wide letter spacing in screenshots #34788
Comments
Would it be possible to share your workflow yaml with us? Are you using Docker or a normal runner-image? Are you using |
We have our own large runner that is set up the same as We run this in the workflow:
|
This looks good then from our side (was checking for ubuntu + install-deps)! Would it be possible to provide a small reproducible so we can investigate further? Ideally something self-isolated in form of a small HTML site. |
I'll see if I can find time for creating a reproducible environment. As staying at 1.49.1 addresses the issue for us, this may only become a priority for us when we want to use a newer feature. |
New Playwright versions always ship with new browser versions, and staying on 1.49.1 has the risk of you not catching behaviour changes in browsers. So keep in mind that this funky letter spacing might eventually make its way to your users, if it's really a browser change! |
We have also seen this with newer versions of Playwright. Unable to work out why it works sometimes and doesn't others, but we do manually test in both latest and beta Chrome and don't see the issue. Just adding this comment here to point out that it is not a single person's strange experience as we see it too. If we can work out what causes it I will feed back here. |
Perfect, thanks! Once we have a repro, we can start investigating what's causing it. |
Version
1.50.1
Steps to reproduce
Fonts are loaded from
.woff2
files. Font sizes are specified inrem
. The width of the browser window is used for setting the root font size,5px
in the screenshots and4px
in additional explorations.This is several steps into the test so that the font would be loaded. Also, the glyphs are correct just the letter spacing isn't. Screenshots are taken either with
.screenshot()
or.toHaveScreenshot()
.Expected behavior
In Playwright 1.49.1 and earlier, everything worked as expected.
Actual behavior
In Playwright 1.50.1, screenshots have very wide letter spacing for some font sizes. In the attached screenshot (
1rem=5px
), only the font size of3rem
is affected (with different weights). When making the browser window smaller (1rem=4px
), the2.5rem
fonts are affected, too.Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: