-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTMLStyleElement.cljs
104 lines (75 loc) · 2.42 KB
/
HTMLStyleElement.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
(ns web.dom.HTMLStyleElement
"The HTMLStyleElement interface represents a `<style>` element.
inherits properties and methods from its parent, `web.dom.HTMLElement`,
from `web.cssdom.LinkStyle`."
(:refer-clojure :exclude [type]))
(defn media
"Property.
The HTMLStyleElement.media property specifies the intended destination
for style information.
`medium = style.media
style.media = medium`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/media`"
[this]
(-> this (.-media)))
(defn set-media!
"Property.
The HTMLStyleElement.media property specifies the intended destination
for style information.
`medium = style.media
style.media = medium`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/media`"
[this val]
(aset this "media" val))
(defn type
"Property.
The HTMLStyleElement.type read-only property returns the type
the current style.
`string = style.type;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/type`"
[this]
(-> this (.-type)))
(defn disabled
"Property.
Is a Boolean value representing whether or not the stylesheet
disabled (true) or not (false)."
[this]
(-> this (.-disabled)))
(defn set-disabled!
"Property.
Is a Boolean value representing whether or not the stylesheet
disabled (true) or not (false)."
[this val]
(aset this "disabled" val))
(defn sheet
"Property.
Returns the StyleSheet object associated with the given element,
null if there is none"
[this]
(-> this (.-sheet)))
(defn set-sheet!
"Property.
Returns the StyleSheet object associated with the given element,
null if there is none"
[this val]
(aset this "sheet" val))
(defn scoped
"Property.
The HTMLStyleElement.scoped property is a Boolean value indicating
the element applies to the whole document (false) or only to
parent's sub-tree (true).
`value = style.scoped;
style.scoped = true;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/scoped`"
[this]
(-> this (.-scoped)))
(defn set-scoped!
"Property.
The HTMLStyleElement.scoped property is a Boolean value indicating
the element applies to the whole document (false) or only to
parent's sub-tree (true).
`value = style.scoped;
style.scoped = true;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/scoped`"
[this val]
(aset this "scoped" val))