mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
73 lines
651 B
Markdown
73 lines
651 B
Markdown
---
|
|
sidebar_label: MediaFeature
|
|
---
|
|
|
|
# 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>
|