@@ -10,7 +10,6 @@ import DOM.HTML.Indexed.DirValue (DirValue)
10
10
import DOM.HTML.Indexed.FormMethod (FormMethod )
11
11
import DOM.HTML.Indexed.InputType (InputType )
12
12
import DOM.HTML.Indexed.KindValue (KindValue )
13
- import DOM.HTML.Indexed.LengthLiteral (LengthLiteral )
14
13
import DOM.HTML.Indexed.MenuitemType (MenuitemType )
15
14
import DOM.HTML.Indexed.MenuType (MenuType )
16
15
import DOM.HTML.Indexed.OrderedListType (OrderedListType )
@@ -19,6 +18,8 @@ import DOM.HTML.Indexed.ScopeValue (ScopeValue)
19
18
import DOM.HTML.Indexed.StepValue (StepValue )
20
19
import DOM.HTML.Indexed.WrapValue (WrapValue )
21
20
21
+ type CSSPixel = Int
22
+
22
23
type GlobalAttributes r =
23
24
( id :: String
24
25
, title :: String
@@ -200,8 +201,8 @@ type HTMLbutton = Interactive
200
201
)
201
202
202
203
type HTMLcanvas = Interactive
203
- ( width :: Number
204
- , height :: Number
204
+ ( width :: CSSPixel
205
+ , height :: CSSPixel
205
206
)
206
207
207
208
type HTMLcaption = Interactive (onScroll :: Event )
@@ -240,10 +241,10 @@ type HTMLdt = Interactive (onScroll :: Event)
240
241
type HTMLem = Interactive ()
241
242
242
243
type HTMLembed = Interactive
243
- ( height :: Number
244
+ ( height :: CSSPixel
244
245
, src :: String
245
246
, type :: MediaType
246
- , width :: Number
247
+ , width :: CSSPixel
247
248
)
248
249
249
250
type HTMLfieldset = Interactive
@@ -300,27 +301,27 @@ type HTMLhtml = Interactive
300
301
type HTMLi = Interactive ()
301
302
302
303
type HTMLiframe = Noninteractive
303
- ( height :: Number
304
+ ( height :: CSSPixel
304
305
, name :: String
305
306
, onLoad :: Event
306
307
, sandbox :: String
307
308
, src :: String
308
309
, srcDoc :: String
309
- , width :: Number
310
+ , width :: CSSPixel
310
311
)
311
312
312
313
type HTMLimg = Interactive
313
314
( alt :: String
314
315
, crossOrigin :: CrossOriginValue
315
- , height :: Number
316
+ , height :: CSSPixel
316
317
, isMap :: Boolean
317
318
, longDesc :: String
318
319
, onAbort :: Event
319
320
, onError :: Event
320
321
, onLoad :: Event
321
322
, src :: String
322
323
, useMap :: String
323
- , width :: Number
324
+ , width :: CSSPixel
324
325
)
325
326
326
327
type HTMLinput = Interactive
@@ -335,7 +336,7 @@ type HTMLinput = Interactive
335
336
, formMethod :: FormMethod
336
337
, formNoValidate :: Boolean
337
338
, formTarget :: String
338
- , height :: LengthLiteral
339
+ , height :: CSSPixel
339
340
, list :: String
340
341
, max :: Number
341
342
, min :: Number
@@ -358,7 +359,7 @@ type HTMLinput = Interactive
358
359
, step :: StepValue
359
360
, type :: InputType
360
361
, value :: String
361
- , width :: LengthLiteral
362
+ , width :: CSSPixel
362
363
)
363
364
364
365
type HTMLins = Interactive
@@ -438,13 +439,13 @@ type HTMLnoscript = Interactive ()
438
439
type HTMLobject = Interactive
439
440
( data :: String
440
441
, form :: String
441
- , height :: Number
442
+ , height :: CSSPixel
442
443
, name :: String
443
444
, onError :: Event
444
445
, onScroll :: Event
445
446
, type :: MediaType
446
447
, useMap :: String
447
- , width :: Number
448
+ , width :: CSSPixel
448
449
)
449
450
450
451
type HTMLol = Interactive
@@ -613,13 +614,13 @@ type HTMLvar = Interactive ()
613
614
type HTMLvideo = Interactive
614
615
( autoplay :: Boolean
615
616
, controls :: Boolean
616
- , height :: Number
617
+ , height :: CSSPixel
617
618
, loop :: Boolean
618
619
, muted :: Boolean
619
620
, poster :: String
620
621
, preload :: PreloadValue
621
622
, src :: String
622
- , width :: Number
623
+ , width :: CSSPixel
623
624
)
624
625
625
626
type HTMLwbr = Interactive ()
0 commit comments