@@ -23,6 +23,8 @@ pub enum EnumValue {
23
23
Block ,
24
24
Invalid ,
25
25
Box ,
26
+ InlineBlock ,
27
+ Inline ,
26
28
}
27
29
28
30
impl From < ( String , & Property < ' _ > ) > for Display {
@@ -41,6 +43,14 @@ impl From<(String, &Property<'_>)> for Display {
41
43
EnumValue :: Flex
42
44
} else if let DisplayInside :: Box ( _) = value. inside {
43
45
EnumValue :: Box
46
+ } else if let DisplayInside :: FlowRoot = value. inside {
47
+ if let DisplayOutside :: Inline = value. outside {
48
+ EnumValue :: InlineBlock
49
+ } else {
50
+ EnumValue :: Block
51
+ }
52
+ } else if let DisplayOutside :: Inline = value. outside {
53
+ EnumValue :: Inline
44
54
} else {
45
55
if let DisplayOutside :: Block = value. outside {
46
56
EnumValue :: Block
@@ -67,6 +77,8 @@ impl ToExpr for Display {
67
77
EnumValue :: Flex => generate_expr_enum ! ( style_property_enum:: Display :: Flex ) ,
68
78
EnumValue :: Block => generate_expr_enum ! ( style_property_enum:: Display :: Block ) ,
69
79
EnumValue :: Box => generate_expr_enum ! ( style_property_enum:: Display :: Box ) ,
80
+ EnumValue :: InlineBlock => generate_expr_enum ! ( style_property_enum:: Display :: InlineBlock ) ,
81
+ EnumValue :: Inline => generate_expr_enum ! ( style_property_enum:: Display :: Inline ) ,
70
82
EnumValue :: Invalid => generate_invalid_expr ! ( ) ,
71
83
} ,
72
84
)
0 commit comments