diff options
Diffstat (limited to 'src/html/env.nim')
-rw-r--r-- | src/html/env.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/html/env.nim b/src/html/env.nim index d4adeacf..9d0516fe 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -116,6 +116,11 @@ proc atob(window: Window, data: string): DOMResult[NarrowString] {.jsfunc.} = proc btoa(window: Window, data: JSString): DOMResult[string] {.jsfunc.} = return btoa(data) +proc getComputedStyle(window: Window, element: Element, + pseudoElt = none(Element)): JSResult[CSSStyleDeclaration] {.jsfunc.} = + #TODO implement this properly + return ok(element.style) + proc addScripting*(window: Window, selector: Selector[int]) = let rt = newJSRuntime() let ctx = rt.newJSContext() |