if not (self.atkeyword) or self._normalize(akw) == self._normalize(self.atkeyword):
self._atkeyword = akw
else:
self._log.error(u'%s: Invalid atkeyword for this rule: %r' % (self._normalize(self.atkeyword), akw), error = xml.dom.InvalidModificationErr)
atkeyword = property((lambda self: self._atkeyword), _setAtkeyword, doc = u'Literal keyword of an @rule (e.g. ``@IMport``).')
def _setCssText(self, cssText):
self._checkReadonly()
cssText = property((lambda self: u''), _setCssText, doc = u'(DOM) The parsable textual representation of the rule. This reflects the current state of the rule and not its initial value.')
parent = property((lambda self: self._parent), doc = u'The Parent Node of this CSSRule or None.')
parentRule = property((lambda self: self._parentRule), doc = u'If this rule is contained inside another rule (e.g. a style rule inside an @media block), this is the containing rule. If this rule is not nested inside any other rules, this returns None.')
def _getParentStyleSheet(self):
if self.parentRule:
return self.parentRule._parentStyleSheet
return self._parentStyleSheet
parentStyleSheet = property(_getParentStyleSheet, doc = u'The style sheet that contains this rule.')
type = property((lambda self: self.UNKNOWN_RULE), doc = u'The type of this rule, as defined by a CSSRule type constant.')
typeString = property((lambda self: CSSRule._typestrings[self.type]), doc = u"Descriptive name of this rule's type.")
wellformed = property((lambda self: False), doc = u'If the rule is wellformed.')