JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">
<span>Sibling </span><img src = "http://dummyimage.com/120x90/f00/fff.png&text=my+image" />

<br><br>

<span>Parent 
    <img src = "http://dummyimage.com/120x90/f00/fff.png&text=my+image" />
</span>

CSS

span {
    padding: 4px;
    margin: 4px;
    background: yellow;
}
img:hover {
    border: 2px dashed blue;
}
span:hover + img {
    border: 2px dashed blue;
}
span:hover img {
    border: 2px dashed blue;
}