How can I apply a hover style from a parent container, such as a div or anchor, to a tag tag? I know that this is the default behavior for other elements nested inside the parent type. However, it does not work for me when I use the label tag.
Here are three examples: 1) a div with a label, 2) an anchor with a label, 3) an anchor with a span. If you hover over the parent but outside it, it will change the range, but not the mark.
<div> Outside div <mark>inside mark</mark> </div> <a> Outside anchor <mark>inside mark</mark> </a> <br> <a> Outside anchor <span>inside span</span> </a>
https://jsfiddle.net/ku6drqt5/
I would like to know what is special about the tag tag, which prevents this from working, and how I can fix it. Otherwise, simple workarounds are welcome.
Note. I am using Chrome v48.
source share