File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ "use strict" ;
2+
3+ exports . style = function ( el ) {
4+ return function ( ) {
5+ return el . style ;
6+ } ;
7+ } ;
Original file line number Diff line number Diff line change 1+ module Web.CSSOM.ElementCSSInlineStyle
2+ ( module Exports
3+ , style
4+ , fromHTMLElement
5+ ) where
6+
7+ import Effect (Effect )
8+ import Unsafe.Coerce (unsafeCoerce )
9+ import Web.CSSOM.Internal.Types (ElementCSSInlineStyle ) as Exports
10+ import Web.CSSOM.Internal.Types (ElementCSSInlineStyle , CSSStyleDeclaration )
11+ import Web.HTML.HTMLElement (HTMLElement )
12+
13+ foreign import style :: ElementCSSInlineStyle -> Effect CSSStyleDeclaration
14+
15+ fromHTMLElement :: HTMLElement -> ElementCSSInlineStyle
16+ fromHTMLElement = unsafeCoerce
Original file line number Diff line number Diff line change 11module Web.CSSOM.Internal.Types where
22
3+ foreign import data CSSStyleDeclaration :: Type
34foreign import data CSSStyleSheet :: Type
5+ foreign import data ElementCSSInlineStyle :: Type
46foreign import data StyleSheetList :: Type
You can’t perform that action at this time.
0 commit comments