mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1.7 KiB
1.7 KiB
Home > puppeteer > Protocol > CSS > CSSMedia
Protocol.CSS.CSSMedia interface
CSS media rule descriptor.
Signature:
export interface CSSMedia
Properties
Property | Type | Description |
---|---|---|
mediaList | MediaQuery[] | Array of media queries. |
range | SourceRange | The associated rule (@media or @import) header range in the enclosing stylesheet (if available). |
source | ('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 | string | URL of the document containing the media query description. |
styleSheetId | StyleSheetId | Identifier of the stylesheet containing this object (if exists). |
text | string | Media query text. |