Edit in GitHubLog an issue

CSSStyleSheet

Extends: StyleSheet

Category: browser, cssom

See: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet

new CSSStyleSheet()

Represents a CSS style sheet

cssStyleSheet.cssRules : CSSRuleList

Return the list of CSS Rules

Read only

cssStyleSheet.rules : CSSRuleList

Return the list of CSS Rules

Read only

cssStyleSheet.href : DOMString

Read only

cssStyleSheet.type : DOMString

Default: undefined

Read only

cssStyleSheet.insertRule(rule, [index])

Insert a CSS Rule at the specified index.

ParamTypeDefault
rule
\*
[index]
number
0

cssStyleSheet.deleteRule(index)

Delete the rule at the specified index

ParamType
index
\*
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.