@@ 102,10 102,13 @@ instance PropertyParser p => PropertyParser (TextStyle p) where
longhand p self "white-space" [Ident "pre-wrap"] = setWhiteSpace p self False False "normal"
longhand p self "white-space" [Ident "pre-line"] = setWhiteSpace p self True False "normal"
- longhand p self@TextStyle {inner=self'} "display" [Ident "list"] = Just self {
- isListItem = True,
- inner=fromMaybe self' $ longhand (inner p) self' "display" [Ident "block"]
- }
+ longhand p self@TextStyle {inner=self'} "display" [Ident "list-item"] =
+ Just self {
+ isListItem = True,
+ inner = fromMaybe self' $
+ longhand (inner p) self' "display" [Ident "block"],
+ counterIncrement = insertList "list-item" 1 $ counterIncrement self
+ }
longhand TextStyle {inner=p'} self@TextStyle {inner = self'} "display" value
| Just ret <- longhand p' self' "display" value = Just self {
isListItem = False,