Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.CSS

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
namespace Protocol.CSS
import { Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { CSS } = Protocol;

This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated id used in subsequent operations on the related object. Each object type has a specific id structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the get*ForNode() calls (which accept a DOM node id). A client can also keep track of stylesheets via the styleSheetAdded/styleSheetRemoved events and subsequently load the required stylesheet contents using the getStyleSheet[Text]() methods.

Interfaces

CSS container query rule descriptor.

CSS keyframe rule representation.

CSS keyframes rule representation.

CSS Layer at-rule descriptor.

CSS Layer data.

CSS media rule descriptor.

CSS property declaration data.

CSS rule representation.

CSS Scope at-rule descriptor.

CSS style representation.

CSS stylesheet metainformation.

CSS Supports at-rule descriptor.

Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.

Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font

Information about font variation axes for variable fonts

Inherited pseudo element matches from pseudos of an ancestor node.

Inherited CSS rule collection from ancestor node.

Media query descriptor.

Media query expression descriptor.

Information about amount of glyphs that were rendered with given font.

CSS rule collection for a single pseudo style.

Match data for a CSS rule.

CSS coverage information.

Selector list data.

Text range within a resource. All numbers are zero-based.

A descriptor of operation to mutate style declaration text.

Fired whenever an active document stylesheet is added.

Fired whenever a stylesheet is changed as a result of the client operation.

Fired whenever an active document stylesheet is removed.

Data for a simple selector (these are delimited by commas in a selector list).

Type Aliases

Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via inspector" rules), "regular" for regular stylesheets.