最新的Chrome版本(不确定的确切版本)已经破坏了我的一些SVG,vector-effect:non-scaling-stroke
呈现了错误的别名折线。我无法弄清楚是什么引发了这个错误。
var viewBoxen = {
good:"-55.91646158020719 -61.478141667102406 111.83292317296 122.95628333555779",
bad:"-55.92 -61.48 111.83 122.96"
};
var svg = document.querySelector('svg'),
span = document.querySelector('span');
var buttons = document.querySelectorAll('button');
for (var i=buttons.length;i--;) (function(btn){
var viewBox = viewBoxen[btn.id];
btn.onclick = function(){
span.innerHTML = viewBox;
svg.setAttribute('viewBox',viewBox);
}
})(buttons[i]);
buttons[1].click();
svg { display:inline-block; width:200px; height:200px; border:1px solid red; margin:10px }
polyline { fill:none; stroke:black; stroke-width:1px; vector-effect:non-scaling-stroke }
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-55.92 -61.48 111.83 122.96">
<polyline points="19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 -0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 -0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 -0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 -0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 -0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 -0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 -0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 -0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,-0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37 22.07,48.69 41.77,52.17 38.99,32.36 19.58,37.20 22.36,57.01 42.06,60.48 54.92,45.16 52.13,25.35 38.24,10.97 19.70,3.47 0.00,-0.00 -19.70,-3.47 -38.24,-10.97 -52.13,-25.35 -54.92,-45.16 -42.06,-60.48 -22.36,-57.01 -19.58,-37.20 -38.99,-32.36 -41.77,-52.17 -22.07,-48.69 -34.93,-33.37 -37.71,-53.18 -23.82,-38.79 -42.36,-46.28 -22.67,-42.81 -42.36,-46.28 -23.82,-38.79 -37.71,-53.18 -34.93,-33.37 -22.07,-48.69 -41.77,-52.17 -38.99,-32.36 -19.58,-37.20 -22.36,-57.01 -42.06,-60.48 -54.92,-45.16 -52.13,-25.35 -38.24,-10.97 -19.70,-3.47 0.00,0.00 19.70,3.47 38.24,10.97 52.13,25.35 54.92,45.16 42.06,60.48 22.36,57.01 19.58,37.20 38.99,32.36 41.77,52.17 22.07,48.69 34.93,33.37 37.71,53.18 23.82,38.79 42.36,46.28 22.67,42.81 42.36,46.28 23.82,38.79 37.71,53.18 34.93,33.37"/>
<polyline points="-55.92,-61.48 55.92,61.48"/>
</svg>
<p>viewBox="<span></span>"</p>
<p>
<button id="good">High Precision viewBox</button>
<button id="bad">Low Precision viewBox</button>
</p>
另一个例子/比较可见于:
正如您所看到的,如果您在Stack Overflow上运行代码片段,则使用viewBox的高精度(14个小数位)按预期渲染折线,但是当我删除精度(2个小数位)时,渲染折线不同,变大和别名。
如果您查看JSFiddle或我的网站上的比较,您会发现高精度viewBox并不能始终解决问题。
我的问题:您能否帮助我找出Chrome中触发此错误的内容,并(特别是)弄清楚如何避免/一直解决这个问题?
那些想知道这些图片来源的人可能对http://phrogz.net/SVG/TurtleTest.html和http://phrogz.net/tmp/StarryTurtles.html
感兴趣