Bug 163078 - pseudo-element transitions on hover have a delay
Summary: pseudo-element transitions on hover have a delay
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 13:55 PDT by TylerH
Modified: 2016-10-07 06:24 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TylerH 2016-10-06 13:55:14 PDT
When there are two :hover pseudo-classes at play--one for an element's :hover styles and another for a child element's pseudo-element hover styles (see example below)--the transition on the pseudo-element seems to have an erratic delay:

parent:hover {}
parent:hover child::after {}

Removing the initial parent:hover {} styles seem to rectify this issue and cause the pseudo-element's transition to run immediately as expected.

Here's a JSFiddle demo that runs transitions concurrently in Firefox, IE11, even Safari 5.1.7, but has a delay in Chrome:
https://jsfiddle.net/vzpbuk62/3/