1 """not used yet"""
2
3 __all__ = ['DOMImplementationCSS']
4 __docformat__ = 'restructuredtext'
5 __author__ = '$LastChangedBy: doerwalter $'
6 __date__ = '$LastChangedDate: 2007-08-02 22:58:23 +0200 (Do, 02 Aug 2007) $'
7 __version__ = '0.9.2a2 $LastChangedRevision: 160 $'
8
9 import css
10
12 """
13 This interface allows the DOM user to create a CSSStyleSheet
14 outside the context of a document. There is no way to associate
15 the new CSSStyleSheet with a document in DOM Level 2.
16 """
17 _features = [
18 ('css', '2.0'),
19 ('stylesheets', '2.0')
20 ]
21
23 if version == "":
24 version = None
25 return (feature.lower(), version) in self._features
26
27
29 """
30 Creates a new CSSStyleSheet.
31
32 title of type DOMString
33 The advisory title. See also the Style Sheet Interfaces
34 section.
35 media of type DOMString
36 The comma-separated list of media associated with the new style
37 sheet. See also the Style Sheet Interfaces section.
38
39 returns
40 CSSStyleSheet: A new CSS style sheet.
41
42 TODO: DOMException
43 SYNTAX_ERR: Raised if the specified media string value has a
44 syntax error and is unparsable.
45 """
46 return css.CSSStyleSheet(title=title, media=media)
47