You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The colorScheme setting should provide a option to have it follow the current OS setting, e.g. emulate dark when OS prefers dark, and light when OS prefers light.
Example
Add a new colorScheme: "auto" option which when set, emulates the current OS color scheme preference.
Motivation
This is how it works in regular browsers, so playwright should offer it optionally. The default should stay at light to retain stable tests.
In my testing with OS set to dark, neither 'no-preference' nor null have any effect and it stays in light. Maybe null is meant to provide the OS behaviour, not sure.
The text was updated successfully, but these errors were encountered:
馃殌 Feature Request
The colorScheme setting should provide a option to have it follow the current OS setting, e.g. emulate dark when OS prefers dark, and light when OS prefers light.
Example
Add a new
colorScheme: "auto"
option which when set, emulates the current OS color scheme preference.Motivation
This is how it works in regular browsers, so playwright should offer it optionally. The default should stay at
light
to retain stable tests.In my testing with OS set to dark, neither
'no-preference'
nornull
have any effect and it stays in light. Maybenull
is meant to provide the OS behaviour, not sure.The text was updated successfully, but these errors were encountered: