Skip to content

Lupa API Reference / commands/types / Media

Interface: Media

Defined in: src/commands/types.ts:19

Type representing emulateMedia command payload.

Properties

colorScheme?

optional colorScheme?: "light" | "dark" | "no-preference"

Defined in: src/commands/types.ts:23

Color scheme of the media.


forcedColors?

optional forcedColors?: "none" | "active"

Defined in: src/commands/types.ts:38

Forced colors of the media.


media?

optional media?: "print" | "screen"

Defined in: src/commands/types.ts:33

Media type.


reducedMotion?

optional reducedMotion?: "reduce" | "no-preference"

Defined in: src/commands/types.ts:28

Reduced motion of the media.