The CSSStyleSheet interface represents a CSS style sheet.
|
__init__(self,
href=None,
media=None,
title=u'
' ,
disabled=None,
ownerNode=None,
parentStyleSheet=None,
readonly=False,
ownerRule=None)
init parameters are the same as for stylesheets.StyleSheet |
source code
|
|
|
__iter__(self)
generator which iterates over cssRules. |
source code
|
|
|
_cleanNamespaces(self)
removes all namespace rules with same namespaceURI but last one set |
source code
|
|
|
_getUsedURIs(self)
returns set of URIs used in the sheet |
source code
|
|
|
|
|
|
|
_setEncoding(self,
encoding)
sets encoding of charset rule if present or inserts new charsetrule
with given encoding. |
source code
|
|
|
_getEncoding(self)
return encoding if @charset rule if given or default of 'utf-8' |
source code
|
|
|
add(self,
rule)
Adds rule to stylesheet at appropriate position. |
source code
|
|
|
|
|
insertRule(self,
rule,
index=None,
inOrder=False,
_clean=True)
Used to insert a new rule into the style sheet. |
source code
|
|
|
|
|
setSerializer(self,
cssserializer)
Sets the global Serializer used for output of all stylesheet
output. |
source code
|
|
|
|
|
|
|
|
Inherited from util.Base (private):
_adddefaultproductions ,
_checkReadonly ,
_nexttoken ,
_parse ,
_splitNamespacesOff ,
_stringtokenvalue ,
_tokenize2 ,
_tokensupto2 ,
_tokenvalue ,
_type ,
_uritokenvalue ,
_valuestr
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|