Types

Link copied to clipboard
@Serializable
data class FontsUpdated(val font: FontFace? = null) : CSSEvent

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

Link copied to clipboard
@Serializable
object MediaQueryResultChanged : CSSEvent

Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features.

Link copied to clipboard
@Serializable
data class StyleSheetAdded(val header: CSSStyleSheetHeader) : CSSEvent

Fired whenever an active document stylesheet is added.

Link copied to clipboard
@Serializable
data class StyleSheetChanged(val styleSheetId: StyleSheetId) : CSSEvent

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

Link copied to clipboard
@Serializable
data class StyleSheetRemoved(val styleSheetId: StyleSheetId) : CSSEvent

Fired whenever an active document stylesheet is removed.