Stabilize Playwright Chrome text rendering across platforms (#4318)

This commit is contained in:
Tomek
2026-06-17 09:21:16 +00:00
committed by GitHub
parent 0ca49523a2
commit a0ad403a91
+10
View File
@@ -18,6 +18,16 @@ export default defineConfig({
use: {
...devices['Desktop Chrome'],
channel: 'chrome',
launchOptions: {
args: [
// Disable subpixel (LCD) text so glyphs always render with
// grayscale antialiasing — removes the red/blue edge fringing
// that varies between macOS (local) and Linux (CI) runs.
'--disable-lcd-text',
// Disable font hinting so glyph rasterization is platform-independent.
'--font-render-hinting=none',
],
},
},
},
],