Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
namespace Protocol.CSS
import { Protocol } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.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 keyframe rule representation.

CSS keyframes rule representation.

CSS media rule descriptor.

CSS property declaration data.

CSS rule representation.

CSS style representation.

CSS stylesheet metainformation.

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 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.