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

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