Yes, but you are using both a class and a pseudo-class, which is not valid:
li:not(.inner:hover):hover
Even if you change it to what is really (according to this answer ):
li:not(.inner):hover, li:not(:hover):hover
The first selector will always match your li on hover, and the second selector will never match anything. It will never match your div.inner because you are attaching :not() to li .
Finally, if you want to change li when .inner gets stuck, this is not possible with current CSS selectors. You will need JavaScript.
source share