You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
471 B

2 years ago
  1. 'use strict'
  2. let Container = require('./container')
  3. class AtRule extends Container {
  4. constructor(defaults) {
  5. super(defaults)
  6. this.type = 'atrule'
  7. }
  8. append(...children) {
  9. if (!this.proxyOf.nodes) this.nodes = []
  10. return super.append(...children)
  11. }
  12. prepend(...children) {
  13. if (!this.proxyOf.nodes) this.nodes = []
  14. return super.prepend(...children)
  15. }
  16. }
  17. module.exports = AtRule
  18. AtRule.default = AtRule
  19. Container.registerAtRule(AtRule)