-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSSStyleRule.cljs
83 lines (58 loc) · 2.36 KB
/
CSSStyleRule.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
(ns web.cssdom.CSSStyleRule
"CSSStyleRule represents a single CSS style rule. It implements
`web.cssdom.CSSRule` interface with a type value of 1 (CSSRule.STYLE_RULE)."
(:refer-clojure :exclude []))
(defn selector-text
"Property.
The CSSRule.selectorText property gets the textual representation
the selector for the rule set. This is readonly in some browsers;
set stylesheet rules dynamically cross-browser, see Using dynamic
information.
`string = cssRule.selectorText`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText`"
[this]
(-> this (.-selectorText)))
(defn set-selector-text!
"Property.
The CSSRule.selectorText property gets the textual representation
the selector for the rule set. This is readonly in some browsers;
set stylesheet rules dynamically cross-browser, see Using dynamic
information.
`string = cssRule.selectorText`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText`"
[this val]
(aset this "selectorText" val))
(defn style
"Property.
The CSSRule.style property is the `web.cssdom.CSSStyleDeclaration`
for the declaration block of the `web.cssdom.CSSRule`.
`styleObj = cssRule.style`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/style`"
[this]
(-> this (.-style)))
(defn set-style!
"Property.
The CSSRule.style property is the `web.cssdom.CSSStyleDeclaration`
for the declaration block of the `web.cssdom.CSSRule`.
`styleObj = cssRule.style`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/style`"
[this val]
(aset this "style" val))
(defn style-map
"Property.
The styleMap read-only property of the `web.cssdom.CSSStyleRule`
returns a `web.css.StylePropertyMap` object which provides access
rule's property-value pairs.
`var stylePropertyMap = CSSStyleRule.styleMap;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/styleMap`"
[this]
(-> this (.-styleMap)))
(defn set-style-map!
"Property.
The styleMap read-only property of the `web.cssdom.CSSStyleRule`
returns a `web.css.StylePropertyMap` object which provides access
rule's property-value pairs.
`var stylePropertyMap = CSSStyleRule.styleMap;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/styleMap`"
[this val]
(aset this "styleMap" val))