puppeteer/new-docs/puppeteer.protocol.css.cssmedia.md
2020-07-13 14:01:35 +01:00

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.