Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken list style for unordered lists #60

Open
bastikempken opened this issue May 12, 2021 · 0 comments
Open

Broken list style for unordered lists #60

bastikempken opened this issue May 12, 2021 · 0 comments

Comments

@bastikempken
Copy link

The rendering of the ul list items is broken. In Firefox there aren't any items rendered at all. In Chrome there is some kind of default behavior, the items are rendered but not in the specific color:

image

I think this is cause by the missing url encoding of the list-style-image attribute value:

list-style-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><circle fill="#ff9c66" cx="5" cy="4" r="4"/></svg>');

In addition firefox needs some width and hidthattributes on the svg tag:

list-style-image: url("data:image/svg+xml;utf8,%3c?xml version='1.0' encoding='utf-8'?%3e%3csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 10 10'%3e%3ccircle fill='%23ff9c66' cx='5' cy='4' r='4'/%3e%3c/svg%3e") 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant