This isn't a Raphael issue, it's the way SVG works.(这不是Raphael的问题,而是SVG的工作方式。)
outline and outline-offset are not mapped SVG attributes.(轮廓和轮廓偏移量未映射SVG属性。) Ie they do not map to CSS properties.(即,它们不映射到CSS属性。) In fact neither of these CSS properties should really do anything in SVG (they aren't mentioned in the SVG specification).(实际上,这两个CSS属性都不应该在SVG中做任何事情(在SVG规范中未提及)。)
Browsers exist mainly to render HTML, sometimes things that should only work in HTML bleed into SVG when they should have no effect there.(浏览器主要用于渲染HTML,有时它们应该只在HTML中起作用,而在那儿应该没有效果时,它们只能渗入SVG。) 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…