Skip to content

css-has-pseudo is not working when hovering on child #100

@3bdallahz

Description

@3bdallahz

Hi,
I have css like this

.wrapper:has(> input:hover) {
  /* style links that contain an image */
  background-color: green;
}

When hovering on the input nothing happens, but clicking on the input, the wrapper turns green, the same behaviour happens
if we replaced input:hover with button:hover.
if we replaced input:hover with p:hover for example, nothing happens

I'm using css-has-pseudo version 3.0.1

here is the html just in case

<div className="wrapper">
  <input />
</div>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions