forked from fable-compiler/fable-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Browser.Css.Ext.fs
53 lines (43 loc) · 2.44 KB
/
Browser.Css.Ext.fs
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
[<AutoOpen>]
module Browser.CssExtensions
open Fable.Core
open Browser.Types
type Window with
[<Emit("$0.getComputedStyle($1...)")>]
member __.getComputedStyle(elt: Element, ?pseudoElt: string): CSSStyleDeclaration = jsNative
type Element with
/// returns this DocumentOrShadow adopted stylesheets or sets them.
/// https://wicg.github.io/construct-stylesheets/#using-constructed-stylesheets
[<Emit("$0.adoptedStyleSheets{{=$1}}")>]
member __.adoptedStyleSheets with get(): CSSStyleSheet array = jsNative and set(v: CSSStyleSheet array) = jsNative
type ShadowRoot with
/// Returns a StyleSheetList of CSSStyleSheet objects for stylesheets explicitly linked into, or embedded in a shadow tree.
[<Emit("$0.styleSheets")>]
member __.styleSheets: StyleSheetList = jsNative
type Document with
/// returns this DocumentOrShadowRoot adopted stylesheets or sets them.
/// https://wicg.github.io/construct-stylesheets/#using-constructed-stylesheets
[<Emit("$0.adoptedStyleSheets{{=$1}}")>]
member __.adoptedStyleSheets with get(): CSSStyleSheet array = jsNative and set(v: CSSStyleSheet array) = jsNative
/// Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
[<Emit("$0.styleSheets{{=$1}}")>]
member __.styleSheets with get(): StyleSheetList = jsNative and set(v: StyleSheetList) = jsNative
[<Emit("$0.styleMedia{{=$1}}")>]
member __.styleMedia with get(): StyleMedia = jsNative and set(v: StyleMedia) = jsNative
[<Emit("$0.getMatchedCSSRules($1...)")>]
member __.getMatchedCSSRules(elt: Element, ?pseudoElt: string): CSSRuleList = jsNative
type HTMLElement with
[<Emit("$0.style{{=$1}}")>]
member __.style with get(): CSSStyleDeclaration = jsNative and set(v: CSSStyleDeclaration) = jsNative
type HTMLLinkElement with
[<Emit("$0.sheet{{=$1}}")>]
member __.sheet with get(): StyleSheet = jsNative and set(v: StyleSheet) = jsNative
type HTMLStyleElement with
[<Emit("$0.sheet{{=$1}}")>]
member __.sheet with get(): StyleSheet = jsNative and set(v: StyleSheet) = jsNative
type SVGStylable with
[<Emit("$0.style{{=$1}}")>]
member __.style with get(): CSSStyleDeclaration = jsNative and set(v: CSSStyleDeclaration) = jsNative
type SVGSVGElement with
[<Emit("$0.getComputedStyle($1...)")>]
member __.getComputedStyle(elt: Element, ?pseudoElt: string): CSSStyleDeclaration = jsNative