puppeteer/new-docs/puppeteer.protocol.css.cssmedia.md
Johan Bay e89e264a16
feat(chromium): roll Chromium to r782078 (#6250)
This corresponds to Chromium 85.0.4182.0.

This roll includes: 
- Enable SameSiteByDefaultCookies and CookiesWithoutSameSiteMustBeSecure
   https://crrev.com/c/2231445
- [FlexNG] Enable FlexNG by default
   https://crrev.com/c/2216595

Closes #6151.
2020-07-20 17:17:06 +02:00

26 lines
1.7 KiB
Markdown

<!-- 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. (CSSMediaSource enum) |
| [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. |