puppeteer/new-docs/puppeteer.protocol.css.cssmedia.md

26 lines
1.7 KiB
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [CSS](./puppeteer.protocol.css.md) &gt; [CSSMedia](./puppeteer.protocol.css.cssmedia.md)
## Protocol.CSS.CSSMedia interface
CSS media rule descriptor.
<b>Signature:</b>
```typescript
export interface CSSMedia
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [mediaList](./puppeteer.protocol.css.cssmedia.medialist.md) | [MediaQuery](./puppeteer.protocol.css.mediaquery.md)<!-- -->\[\] | Array of media queries. |
| [range](./puppeteer.protocol.css.cssmedia.range.md) | [SourceRange](./puppeteer.protocol.css.sourcerange.md) | The associated rule (<!-- -->@<!-- -->media or @<!-- -->import) header range in the enclosing stylesheet (if available). |
| [source](./puppeteer.protocol.css.cssmedia.source.md) | ('mediaRule' \| 'importRule' \| 'linkedSheet' \| 'inlineSheet') | Source of the media query: "mediaRule" if specified by a rule, "importRule" if specified by an rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag. |
| [sourceURL](./puppeteer.protocol.css.cssmedia.sourceurl.md) | string | URL of the document containing the media query description. |
| [styleSheetId](./puppeteer.protocol.css.cssmedia.stylesheetid.md) | [StyleSheetId](./puppeteer.protocol.css.stylesheetid.md) | Identifier of the stylesheet containing this object (if exists). |
| [text](./puppeteer.protocol.css.cssmedia.text.md) | string | Media query text. |