Check out this simple example of CSS rules with hover that is functioning properly: https://codepen.io/hbi99/pen/oNvaEZK
However, when attempting to use an SVG as a symbol and referencing it with the USE tag, the CSS rules for :hover are being ignored. Take a look at this demo: https://codepen.io/hbi99/pen/pozxaea
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0">
<symbol id="box" viewBox="0 0 200 200">
<style>
.test {
fill: #f00;
opacity: 0.35;
}
.test:hover {
fill: #fff;
opacity: 1;
}
</style>
<rect class="test" x="10" y="10" width="150" height="150"/>
</symbol>
</svg>
<svg><use href="#box"></use>
Can anyone offer insight into why the second example is not working as expected? This was tested on Chrome (v76).