3 | import Web.Internal.CssPrim
4 | import Web.Internal.Types
13 | namespace CSSGroupingRule
17 | {auto 0 _ : JSType t1}
18 | -> {auto 0 _ : Elem CSSGroupingRule (Types t1)}
21 | cssRules a = primJS $
CSSGroupingRule.prim__cssRules (up a)
26 | {auto 0 _ : JSType t1}
27 | -> {auto 0 _ : Elem CSSGroupingRule (Types t1)}
31 | deleteRule a b = primJS $
CSSGroupingRule.prim__deleteRule (up a) b
36 | {auto 0 _ : JSType t1}
37 | -> {auto 0 _ : Elem CSSGroupingRule (Types t1)}
40 | -> (index : Optional Bits32)
42 | insertRule' a b c = primJS $
43 | CSSGroupingRule.prim__insertRule (up a) b (toFFI c)
47 | {auto 0 _ : JSType t1}
48 | -> {auto 0 _ : Elem CSSGroupingRule (Types t1)}
52 | insertRule a b = primJS $
CSSGroupingRule.prim__insertRule (up a) b undef
56 | namespace CSSImportRule
59 | href : (obj : CSSImportRule) -> JSIO String
60 | href a = primJS $
CSSImportRule.prim__href a
64 | media : (obj : CSSImportRule) -> JSIO MediaList
65 | media a = primJS $
CSSImportRule.prim__media a
69 | styleSheet : (obj : CSSImportRule) -> JSIO CSSStyleSheet
70 | styleSheet a = primJS $
CSSImportRule.prim__styleSheet a
74 | namespace CSSMarginRule
77 | name : (obj : CSSMarginRule) -> JSIO String
78 | name a = primJS $
CSSMarginRule.prim__name a
82 | style : (obj : CSSMarginRule) -> JSIO CSSStyleDeclaration
83 | style a = primJS $
CSSMarginRule.prim__style a
87 | namespace CSSNamespaceRule
90 | namespaceURI : (obj : CSSNamespaceRule) -> JSIO String
91 | namespaceURI a = primJS $
CSSNamespaceRule.prim__namespaceURI a
95 | prefix_ : (obj : CSSNamespaceRule) -> JSIO String
96 | prefix_ a = primJS $
CSSNamespaceRule.prim__prefix a
100 | namespace CSSPageRule
103 | selectorText : CSSPageRule -> Attribute True Prelude.id String
104 | selectorText v = fromPrim
105 | "CSSPageRule.getselectorText"
107 | prim__setSelectorText
112 | style : (obj : CSSPageRule) -> JSIO CSSStyleDeclaration
113 | style a = primJS $
CSSPageRule.prim__style a
117 | namespace CSSPseudoElement
120 | element : (obj : CSSPseudoElement) -> JSIO Element
121 | element a = primJS $
CSSPseudoElement.prim__element a
125 | type : (obj : CSSPseudoElement) -> JSIO String
126 | type a = primJS $
CSSPseudoElement.prim__type a
133 | CHARSET_RULE : Bits16
138 | FONT_FACE_RULE : Bits16
143 | IMPORT_RULE : Bits16
148 | MARGIN_RULE : Bits16
153 | MEDIA_RULE : Bits16
158 | NAMESPACE_RULE : Bits16
159 | NAMESPACE_RULE = 10
168 | STYLE_RULE : Bits16
174 | {auto 0 _ : JSType t}
175 | -> {auto 0 _ : Elem CSSRule (Types t)}
177 | -> Attribute True Prelude.id String
178 | cssText v = fromPrim
179 | "CSSRule.getcssText"
187 | {auto 0 _ : JSType t1}
188 | -> {auto 0 _ : Elem CSSRule (Types t1)}
190 | -> JSIO (Maybe CSSRule)
191 | parentRule a = tryJS "CSSRule.parentRule" $
CSSRule.prim__parentRule (up a)
196 | {auto 0 _ : JSType t1}
197 | -> {auto 0 _ : Elem CSSRule (Types t1)}
199 | -> JSIO (Maybe CSSStyleSheet)
200 | parentStyleSheet a = tryJS "CSSRule.parentStyleSheet" $
201 | CSSRule.prim__parentStyleSheet (up a)
206 | {auto 0 _ : JSType t1}
207 | -> {auto 0 _ : Elem CSSRule (Types t1)}
210 | type a = primJS $
CSSRule.prim__type (up a)
214 | namespace CSSRuleList
217 | length : (obj : CSSRuleList) -> JSIO Bits32
218 | length a = primJS $
CSSRuleList.prim__length a
222 | item : (obj : CSSRuleList) -> (index : Bits32) -> JSIO (Maybe CSSRule)
223 | item a b = tryJS "CSSRuleList.item" $
CSSRuleList.prim__item a b
227 | namespace CSSStyleDeclaration
230 | cssFloat : CSSStyleDeclaration -> Attribute True Prelude.id String
231 | cssFloat v = fromPrim
232 | "CSSStyleDeclaration.getcssFloat"
239 | cssText : CSSStyleDeclaration -> Attribute True Prelude.id String
240 | cssText v = fromPrim
241 | "CSSStyleDeclaration.getcssText"
248 | length : (obj : CSSStyleDeclaration) -> JSIO Bits32
249 | length a = primJS $
CSSStyleDeclaration.prim__length a
253 | parentRule : (obj : CSSStyleDeclaration) -> JSIO (Maybe CSSRule)
254 | parentRule a = tryJS "CSSStyleDeclaration.parentRule" $
255 | CSSStyleDeclaration.prim__parentRule a
259 | getPropertyPriority :
260 | (obj : CSSStyleDeclaration)
261 | -> (property : String)
263 | getPropertyPriority a b = primJS $
264 | CSSStyleDeclaration.prim__getPropertyPriority a b
269 | (obj : CSSStyleDeclaration)
270 | -> (property : String)
272 | getPropertyValue a b = primJS $
CSSStyleDeclaration.prim__getPropertyValue a b
276 | item : (obj : CSSStyleDeclaration) -> (index : Bits32) -> JSIO String
277 | item a b = primJS $
CSSStyleDeclaration.prim__item a b
282 | (obj : CSSStyleDeclaration)
283 | -> (property : String)
285 | removeProperty a b = primJS $
CSSStyleDeclaration.prim__removeProperty a b
290 | (obj : CSSStyleDeclaration)
291 | -> (property : String)
292 | -> (value : String)
293 | -> (priority : Optional String)
295 | setProperty' a b c d = primJS $
296 | CSSStyleDeclaration.prim__setProperty a b c (toFFI d)
300 | (obj : CSSStyleDeclaration)
301 | -> (property : String)
302 | -> (value : String)
304 | setProperty a b c = primJS $
CSSStyleDeclaration.prim__setProperty a b c undef
308 | namespace CSSStyleRule
311 | selectorText : CSSStyleRule -> Attribute True Prelude.id String
312 | selectorText v = fromPrim
313 | "CSSStyleRule.getselectorText"
315 | prim__setSelectorText
320 | style : (obj : CSSStyleRule) -> JSIO CSSStyleDeclaration
321 | style a = primJS $
CSSStyleRule.prim__style a
325 | namespace CSSStyleSheet
328 | cssRules : (obj : CSSStyleSheet) -> JSIO CSSRuleList
329 | cssRules a = primJS $
CSSStyleSheet.prim__cssRules a
333 | ownerRule : (obj : CSSStyleSheet) -> JSIO (Maybe CSSRule)
334 | ownerRule a = tryJS "CSSStyleSheet.ownerRule" $
335 | CSSStyleSheet.prim__ownerRule a
339 | rules : (obj : CSSStyleSheet) -> JSIO CSSRuleList
340 | rules a = primJS $
CSSStyleSheet.prim__rules a
345 | (obj : CSSStyleSheet)
346 | -> (selector : Optional String)
347 | -> (style : Optional String)
348 | -> (index : Optional Bits32)
350 | addRule' a b c d = primJS $
351 | CSSStyleSheet.prim__addRule a (toFFI b) (toFFI c) (toFFI d)
354 | addRule : (obj : CSSStyleSheet) -> JSIO Int32
355 | addRule a = primJS $
CSSStyleSheet.prim__addRule a undef undef undef
359 | deleteRule : (obj : CSSStyleSheet) -> (index : Bits32) -> JSIO ()
360 | deleteRule a b = primJS $
CSSStyleSheet.prim__deleteRule a b
365 | (obj : CSSStyleSheet)
367 | -> (index : Optional Bits32)
369 | insertRule' a b c = primJS $
CSSStyleSheet.prim__insertRule a b (toFFI c)
372 | insertRule : (obj : CSSStyleSheet) -> (rule : String) -> JSIO Bits32
373 | insertRule a b = primJS $
CSSStyleSheet.prim__insertRule a b undef
377 | removeRule' : (obj : CSSStyleSheet) -> (index : Optional Bits32) -> JSIO ()
378 | removeRule' a b = primJS $
CSSStyleSheet.prim__removeRule a (toFFI b)
381 | removeRule : (obj : CSSStyleSheet) -> JSIO ()
382 | removeRule a = primJS $
CSSStyleSheet.prim__removeRule a undef
386 | namespace MediaList
389 | length : (obj : MediaList) -> JSIO Bits32
390 | length a = primJS $
MediaList.prim__length a
394 | mediaText : MediaList -> Attribute True Prelude.id String
395 | mediaText v = fromPrim
396 | "MediaList.getmediaText"
403 | appendMedium : (obj : MediaList) -> (medium : String) -> JSIO ()
404 | appendMedium a b = primJS $
MediaList.prim__appendMedium a b
408 | deleteMedium : (obj : MediaList) -> (medium : String) -> JSIO ()
409 | deleteMedium a b = primJS $
MediaList.prim__deleteMedium a b
413 | item : (obj : MediaList) -> (index : Bits32) -> JSIO (Maybe String)
414 | item a b = tryJS "MediaList.item" $
MediaList.prim__item a b
418 | namespace StyleSheet
422 | {auto 0 _ : JSType t}
423 | -> {auto 0 _ : Elem StyleSheet (Types t)}
425 | -> Attribute True Prelude.id Bool
426 | disabled v = fromPrim
427 | "StyleSheet.getdisabled"
435 | {auto 0 _ : JSType t1}
436 | -> {auto 0 _ : Elem StyleSheet (Types t1)}
438 | -> JSIO (Maybe String)
439 | href a = tryJS "StyleSheet.href" $
StyleSheet.prim__href (up a)
444 | {auto 0 _ : JSType t1}
445 | -> {auto 0 _ : Elem StyleSheet (Types t1)}
448 | media a = primJS $
StyleSheet.prim__media (up a)
453 | {auto 0 _ : JSType t1}
454 | -> {auto 0 _ : Elem StyleSheet (Types t1)}
456 | -> JSIO (Maybe (HSum [Element, ProcessingInstruction]))
457 | ownerNode a = tryJS "StyleSheet.ownerNode" $
StyleSheet.prim__ownerNode (up a)
462 | {auto 0 _ : JSType t1}
463 | -> {auto 0 _ : Elem StyleSheet (Types t1)}
465 | -> JSIO (Maybe CSSStyleSheet)
466 | parentStyleSheet a = tryJS "StyleSheet.parentStyleSheet" $
467 | StyleSheet.prim__parentStyleSheet (up a)
472 | {auto 0 _ : JSType t1}
473 | -> {auto 0 _ : Elem StyleSheet (Types t1)}
475 | -> JSIO (Maybe String)
476 | title a = tryJS "StyleSheet.title" $
StyleSheet.prim__title (up a)
481 | {auto 0 _ : JSType t1}
482 | -> {auto 0 _ : Elem StyleSheet (Types t1)}
485 | type a = primJS $
StyleSheet.prim__type (up a)
489 | namespace StyleSheetList
492 | length : (obj : StyleSheetList) -> JSIO Bits32
493 | length a = primJS $
StyleSheetList.prim__length a
498 | (obj : StyleSheetList)
499 | -> (index : Bits32)
500 | -> JSIO (Maybe CSSStyleSheet)
501 | item a b = tryJS "StyleSheetList.item" $
StyleSheetList.prim__item a b
510 | namespace ElementCSSInlineStyle
514 | {auto 0 _ : JSType t1}
515 | -> {auto 0 _ : Elem ElementCSSInlineStyle (Types t1)}
517 | -> JSIO CSSStyleDeclaration
518 | style a = primJS $
ElementCSSInlineStyle.prim__style (up a)
522 | namespace LinkStyle
526 | {auto 0 _ : JSType t1}
527 | -> {auto 0 _ : Elem LinkStyle (Types t1)}
529 | -> JSIO (Maybe CSSStyleSheet)
530 | sheet a = tryJS "LinkStyle.sheet" $
LinkStyle.prim__sheet (up a)