CSSStyleSheet
Generated.swift:1319class CSSStyleSheet
class CSSStyleSheet
import CSSOM
class StyleSheet
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init(options: CSSStyleSheetInit? = nil)
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
@ReadonlyAttribute var cssRules: CSSRuleList { get }
@ReadonlyAttribute var ownerRule: CSSRule? { get }
@ReadonlyAttribute var rules: CSSRuleList { get }
func addRule(selector: String? = nil, style: String? = nil, index: UInt32? = nil) -> Int32
func deleteRule(index: UInt32)
func insertRule(rule: String, index: UInt32? = nil) -> UInt32
func removeRule(index: UInt32? = nil)
func replace(text: String) -> JSPromise
func replace(text: String) async throws -> CSSStyleSheet
func replaceSync(text: String)