createStyleSheet

Creates a new special "via-inspector" stylesheet in the frame with given frameId.


suspend fun createStyleSheet(frameId: String, force: Boolean? = null): CSS.CreateStyleSheetReturn

Creates a new special "via-inspector" stylesheet in the frame with given frameId.

Parameters

frameId

Identifier of the frame where "via-inspector" stylesheet should be created.

force

If true, creates a new stylesheet for every call. If false, returns a stylesheet previously created by a call with force=false for the frame's document if it exists or creates a new stylesheet (default: false).