puppeteer/docs/api/puppeteer.mediafeature.md

73 lines
651 B
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: MediaFeature
---
# MediaFeature interface
A media feature to emulate.
#### Signature:
2022-07-05 13:41:43 +00:00
```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>