@@ -624,6 +624,11 @@ type alias FontVariantNumeric compatible =
624
624
}
625
625
626
626
627
+ {- | -}
628
+ type alias LineHeight compatible =
629
+ { compatible | value : String , lineHeight : Compatible }
630
+
631
+
627
632
{- | <https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Values>
628
633
-}
629
634
type alias Visibility compatible =
@@ -848,6 +853,7 @@ type alias CalculatedLength =
848
853
, lengthOrNone : Compatible
849
854
, lengthOrMinMaxDimension : Compatible
850
855
, lengthOrNoneOrMinMaxDimension : Compatible
856
+ , lineHeight : Compatible
851
857
, textIndent : Compatible
852
858
, flexBasis : Compatible
853
859
, lengthOrNumberOrAutoOrNoneOrContent : Compatible
@@ -935,6 +941,7 @@ calc firstExpr expression secondExpr =
935
941
, lengthOrNumberOrAutoOrNoneOrContent = Compatible
936
942
, fontSize = Compatible
937
943
, lengthOrAutoOrCoverOrContain = Compatible
944
+ , lineHeight = Compatible
938
945
, calc = Compatible
939
946
}
940
947
@@ -1462,6 +1469,7 @@ type alias BasicProperty =
1462
1469
, lengthOrMinMaxDimension : Compatible
1463
1470
, lengthOrNoneOrMinMaxDimension : Compatible
1464
1471
, lengthOrNumberOrAutoOrNoneOrContent : Compatible
1472
+ , lineHeight : Compatible
1465
1473
, listStyleType : Compatible
1466
1474
, listStylePosition : Compatible
1467
1475
, listStyleTypeOrPositionOrImage : Compatible
@@ -1534,6 +1542,7 @@ initial =
1534
1542
, lengthOrMinMaxDimension = Compatible
1535
1543
, lengthOrNoneOrMinMaxDimension = Compatible
1536
1544
, listStyleType = Compatible
1545
+ , lineHeight = Compatible
1537
1546
, listStylePosition = Compatible
1538
1547
, listStyleTypeOrPositionOrImage = Compatible
1539
1548
, flexBasis = Compatible
@@ -2467,13 +2476,14 @@ infinite =
2467
2476
{- | A unitless number. Useful with properties like [`flexGrow`](#flexGrow)
2468
2477
which accept unitless numbers.
2469
2478
-}
2470
- num : Float -> LengthOrNumberOrAutoOrNoneOrContent (Number (LengthOrNumber (NumberOrInfinite { numericValue : Float , unitLabel : String , units : UnitlessFloat })))
2479
+ num : Float -> LengthOrNumberOrAutoOrNoneOrContent (Number (LengthOrNumber (NumberOrInfinite ( LineHeight { numericValue : Float , unitLabel : String , units : UnitlessFloat }) )))
2471
2480
num val =
2472
2481
{ value = String . fromFloat val
2473
2482
, lengthOrNumber = Compatible
2474
2483
, number = Compatible
2475
2484
, numberOrInfinite = Compatible
2476
2485
, lengthOrNumberOrAutoOrNoneOrContent = Compatible
2486
+ , lineHeight = Compatible
2477
2487
, numericValue = val
2478
2488
, unitLabel = " "
2479
2489
, units = UnitlessFloat
@@ -5202,23 +5212,26 @@ larger =
5202
5212
-- Styles --
5203
5213
5204
5214
5205
- type alias Normal =
5206
- { value : String
5207
- , fontStyle : Compatible
5208
- , fontWeight : Compatible
5209
- , featureTagValue : Compatible
5210
- , overflowWrap : Compatible
5211
- , whiteSpace : Compatible
5215
+ type alias Normal compatible =
5216
+ { compatible
5217
+ | value : String
5218
+ , fontStyle : Compatible
5219
+ , fontWeight : Compatible
5220
+ , featureTagValue : Compatible
5221
+ , lineHeight : Compatible
5222
+ , overflowWrap : Compatible
5223
+ , whiteSpace : Compatible
5212
5224
}
5213
5225
5214
5226
5215
5227
{- | -}
5216
- normal : Normal
5228
+ normal : Normal {}
5217
5229
normal =
5218
5230
{ value = " normal"
5219
5231
, fontStyle = Compatible
5220
5232
, fontWeight = Compatible
5221
5233
, featureTagValue = Compatible
5234
+ , lineHeight = Compatible
5222
5235
, overflowWrap = Compatible
5223
5236
, whiteSpace = Compatible
5224
5237
}
@@ -6608,7 +6621,7 @@ color c =
6608
6621
lineHeight (px 10)
6609
6622
6610
6623
-}
6611
- lineHeight : LengthOrNumber compatible -> Style
6624
+ lineHeight : LineHeight compatible -> Style
6612
6625
lineHeight =
6613
6626
prop1 " line-height"
6614
6627
0 commit comments