In a future globe, you might utilize the CSS : has
selector to inspect whether the moms and dad aspect has actually a floated aspect such as this: moms and dad: has(. child-b: float). child-a
However, this is presently still in need of support in Firefox without a flag, so the only various other method you might utilize is by inspecting whether the customer floats over the moms and dad aspect with moms and dad: float
and afterwards inspect whether the kid a is additionally floated, such as this: moms and dad: hover.child-a: not(: float)
Currently, the hover impact would just use if you’re floating over the moms and dad
aspect or the child-b
aspect, yet not over the child-a
aspect.