Add support of list-style-type

This commit is contained in:
Kibzik
2023-03-01 13:09:24 +03:00
parent 91b8a25e5a
commit f1b23bf1e7
2 changed files with 17 additions and 3 deletions

View File

@@ -41,6 +41,13 @@ class LiveCartaConfig:
r"(^h[1-9]$)": ["list-style-type"]
}
"""
Dictionary LIVECARTA_STYLE_ATTRS_REPLACE = { css property: css property to replace with }
"""
LIVECARTA_STYLE_ATTRS_REPLACE = {
"list-style": "list-style-type",
}
"""
Dictionary LIVECARTA_STYLE_ATTRS = { css property: value }
Style properties that can be used to fit LiveCarta css style convention.
@@ -84,6 +91,6 @@ class LiveCartaConfig:
"border-right": [],
"border-left": [],
"border-bottom": [],
"list-style-type": [],
"list-style-type": ["circle", "disc", "square", "decimal"],
"list-style-image": [],
}