Pass if, in groups 1 to 5, the highlight is over “Two”, the same as in the Reference. Fail if the highlight is over “Three”. Reload the page to run the test again.
Reference: the expected position (over “Two”)
1. Control: ::after, no :has() rule
2. ::after, with ul:has(a.current) { --flag: on; } on the originating element
3. ::after, with the same :has() rule on the parent of the originating element
4. A real child element instead of ::after, with ul:has(a.current) { --flag: on; }
5. Control without anchor positioning: ::after whose left changes with a class on the list, with ul:has(a.current) { --flag: on; }
Move the pointer from “One” to “Three”. Pass if the highlight slides over 1 second in all five lists. Fail if it jumps.
H1. Control: no :has() rule
H2. ul:has(a:hover) { --flag: on; } on the originating element
H3. ul:hover { --flag: on; } on the originating element
H4. :has(a:hover) { --flag: on; } on the parent of the originating element
H5. A real child element instead of ::after, with ul:has(a:hover) { --flag: on; }