From 6649f53f9d13b98da448e470b4c36f33253864cf Mon Sep 17 00:00:00 2001 From: Cory Date: Sun, 8 Dec 2019 14:41:27 -0800 Subject: [PATCH] URL encode the "#" character in SVG data url The todo-list checkbox SVG is not rendered in Chrome. Replacing the "#" character with the percent encoded value "%23" seems to fix the problem. Most likely the same problem as this question and answer on Stack Overflow: https://stackoverflow.com/a/30733736 --- style.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index fc2e67b..1ea137d 100644 --- a/style.css +++ b/style.css @@ -193,11 +193,11 @@ label[for='toggle-all'] { } .todo-list li .toggle:after { - content: url('data:image/svg+xml;utf8,'); + content: url('data:image/svg+xml;utf8,'); } .todo-list li .toggle:checked:after { - content: url('data:image/svg+xml;utf8,'); + content: url('data:image/svg+xml;utf8,'); } .todo-list li label { @@ -379,4 +379,4 @@ html .clear-completed:active { .filters { bottom: 10px; } -} \ No newline at end of file +}