diff options
author | Mark Otto <markdotto@gmail.com> | 2020-09-15 01:03:52 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-09-15 08:19:58 +0300 |
commit | 849fea5a1ec6a2c39451fefb21a70c6dc9ceac42 (patch) | |
tree | ae67cb6810b023386429c27f736c55ea369b7e61 | |
parent | 5f5f1cbcff31d970f8f63a01757e5c916f77727a (diff) |
Add a comment for escape-svg function
Closes #30835 by leaving a comment in the source that the escape-svg() function must have quotes around data URIs.
-rw-r--r-- | scss/_functions.scss | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scss/_functions.scss b/scss/_functions.scss index 980efb0258..83eea1fbe3 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -74,6 +74,9 @@ } // See https://codepen.io/kevinweber/pen/dXWoRw +// +// Requires the use of quotes around data URIs. + @function escape-svg($string) { @if str-index($string, "data:image/svg+xml") { @each $char, $encoded in $escaped-characters { |