CSSStyleSheet-replace.txt 332 B

1234567
  1. Exception thrown when calling replace() on non-constructed stylesheet: NotAllowedError
  2. Number of CSS rules after replace(): 2
  3. Rule: .test { font-size: 14px; }
  4. Rule: .test2 { font-size: 16px; }
  5. cssRules returns the same object before and after replace(): true
  6. @import rule should be not appear below:
  7. Rule: .test { padding: 100px; }