Back to Puppeteer

MediaFeature interface

website/versioned_docs/version-24.40.0/api/puppeteer.mediafeature.md

19.2.2611 B
Original Source

MediaFeature interface

A media feature to emulate.

Signature

typescript
export interface MediaFeature

Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th><th>

Default

</th></tr></thead> <tbody><tr><td>

<span id="name">name</span>

</td><td> </td><td>

string

</td><td>

A name of the feature, for example, 'prefers-reduced-motion'.

</td><td> </td></tr> <tr><td>

<span id="value">value</span>

</td><td> </td><td>

string

</td><td>

A value for the feature, for example, 'reduce'.

</td><td> </td></tr> </tbody></table>