Skip to content

WebMedia

Namespace: E2E.Engine

public sealed record WebMedia : IEquatable<WebMedia>

User preferences a page reads through @media rules and matchMedia, as Playwright’s emulateMedia sets them. A feature left <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null"&gt;null&lt;/a> keeps the browser’s own value, or the one an earlier call set.

Inheritance: object

Implements: IEquatable<WebMedia>

View source

public WebColorScheme? ColorScheme { get; init; }

prefers-color-scheme.

Value: WebColorScheme?

View source

public WebReducedMotion? ReducedMotion { get; init; }

prefers-reduced-motion.

Value: WebReducedMotion?

View source