内联svgs无法在Chrome中运行[50.0.2661.86(64位)]

时间:2016-05-04 06:26:52

标签: google-chrome svg

当表示为内嵌数据uris时,最新的Chrome似乎已经破坏了svgs的渲染。

此处示例:http://codepen.io/anon/pen/pyqJKd

HTML:

<div class='icontest'></div>

CSS:

html {background-color:black;}
.icontest {

  border: 1px solid gray;
  background-position: center;
    background-repeat: no-repeat;
 background-image:url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IiIgaGVpZ2h0PSIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0iZmlsbDojNTc1NjUwIj48ZyBpZD0iX3gzN19nOHVJM18xXyI+CTxnPgkJPGc+CQkJPHBhdGggZmlsbD0icmdiYSgwLDAsMCwwKSIgZD0iTTExLjA5NSw0OTkuMTM5YzAtMTYxLjg4NywwLTMyMy43NzQsMC00ODUuNjYxYzE2MS44ODcsMCwzMjMuNzc0LDAsNDg1LjY2MiwwJiN4RDsmI3hBOwkJCQljMCwxNjEuODg3LDAsMzIzLjc3NCwwLDQ4NS42NjFDMzM0Ljg2OSw0OTkuMTM5LDE3Mi45ODIsNDk5LjEzOSwxMS4wOTUsNDk5LjEzOXogTTEzMi40NTUsNDExLjk2JiN4RDsmI3hBOwkJCQljMi41NzctNC43MjksMy4zMjMtNy4yODgsNC45NzQtOC45NDljMjcuNzM0LTI3LjkyOCw1NS4zMzYtNTYsODMuNzIzLTgzLjI1MWMzLjQyOS0zLjI4OSwxMS42MjgtMy43NDUsMTYuOTctMi41NzMmI3hEOyYjeEE7CQkJCWM0OC4y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4wNzItMjYuMTg1LDAuODE4LTU0LjcwNCwyNC41NjItNjkuMjc5YzExLjAzNi02Ljc3NCwxNC45NDYtMTMuOTM4LDEzLjM4My0yNS43MjhjLTAuMzUzLTIuNjQ5LTAuMjMyLTUuNC0wLjAyMi04LjA4MiYjeEQ7JiN4QTsJCQkJYzEuNDg5LTE5LjAyMS0wLjU5NS0zMy43NDYtMTkuMjMtNDcuNTEzYy0zMC4wMTMtMjIuMTcxLTI4LjU0NS02NS43NzYtMS40NzktOTAuNjg0YzI2LjYzOC0yNC41MTIsNjYuNTc1LTIxLjQ5Myw5MC40MDksNi44MzYmI3hEOyYjeEE7CQkJCWMyMy4wODQsMjcuNDM2LDE3Ljc5Myw2OC40ODMtMTMuMDY2LDg5LjExOWMtMTEuMzMxLDcuNTc2LTE2LjU1NiwxNS4yODMtMTQuNjEyLDI4LjYwM2MwLjkyNSw2LjMzOCwwLjk1OSwxMy4wNDQtMC4wMDcsMTkuMzY5JiN4RDsmI3hBOwkJCQljLTIuMDQ2LDEzLjQxMiwzLjM1LDIxLjEwNiwxNC43MjksMjguNDk4YzI0LjE4NywxNS43MDksMzIuNTM4LDQ0LjEyOCwyMy4yODMsNzEuMDU4JiN4RDsmI3hBOwkJCQlDNDgxLjE4MSw0NzkuMjUyLDQ1Ni4zNDMsNDk2LjM3NSw0MjkuNzY3LDQ5Ni4wMjF6IiAvPgkJPC9nPgk8L2c+PC9nPjwvc3ZnPg==');

  display: inline-block;
  width: 200px;
  height: 200px;
}

这适用于以前版本的Chrome以及当前版本的Safari和Firefox。

这是Chrome中的错误吗?或者是一些阻碍其运作的新政策变化?

0 个答案:

没有答案