Closed
Bug 1235228
Opened 10 years ago
Closed 7 years ago
animation on ::before/::after that is created by 'content' on :hover only runs the first time it is created
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: c.levin, Unassigned)
Details
(Whiteboard: gfx-noted)
Attachments
(1 file)
|
1.11 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20151226030212
Steps to reproduce:
goto www.sunsetclinicdfw.com
hover mice over "about us/services/contact us" menu
move mice away from menu, then hover over the same menu
Actual results:
the animation of tooltip (move upward, fadein) only plays during first mice hover over. It will not play when mice is moved away then moved back.
Expected results:
animation should play each time mice hovers over the menu (both Edge and Chrome display this properly.
note: tested on nightly too, same problem.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Firefox → Core
Updated•10 years ago
|
Component: Untriaged → Graphics
Comment 1•10 years ago
|
||
I'm not positive this is the right place for this. Let's pass it around.
Flags: needinfo?(jmuizelaar)
Whiteboard: gfx-noted
Comment 2•10 years ago
|
||
Here's a reduced test case. It looks like it might have something to do with the lifetime of anonymous content for hover.
Flags: needinfo?(jmuizelaar)
Comment 3•10 years ago
|
||
Brian, any thoughts on what's happening here?
Component: Graphics → Layout
Flags: needinfo?(bbirtles)
The spec actually isn't clear about what should happen here. Perhaps it would make sense if we applied what the spec says about 'display:none' to having 'content:none' for ::before and ::after, but we don't do that. I think this is likely correct based on what the spec says today, but it may not make sense. And given the bug report, I'm guessing it doesn't match other browsers, although I didn't test.
Component: Layout → CSS Parsing and Computation
Summary: hover animation only play once → animation on ::before/::after that is created by 'content' on :hover only runs the first time it is created
Comment 5•10 years ago
|
||
Chrome 48 and Edge 25 run the animation each time. I'm unable to test Safari.
I'm not quite sure what is lacking in the spec or why a transition between content:none and content:'abc', should differ from a transition between content:'abc' and content:'def' (since the animation re-runs if I add '.tooltip:after { content: "abc"; }' to the stylesheet).
Flags: needinfo?(bbirtles)
Comment 6•10 years ago
|
||
I've noticed that I can make this work as intended by significantly increasing the animation-duration. A value of 6s worked fairly well for me most of the time, but it still doesn't work reliably 100% of the time even with the duration increase.
Comment 7•7 years ago
|
||
This was fixed somewhere in [1]. Unfortunately, mozregression couldn't narrow it down any further. If I had to guess, I would have to say the fix was either Bug 1380258 or Bug 1367278. Marking as fixed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Comment 8•7 years ago
|
||
(In reply to Trevor Rowbotham [:rowbot] from comment #7)
If I had to guess, I would have to say the fix was either Bug 1380258 or Bug 1367278. Marking as fixed.
Almost certainly bug 1367278.
You need to log in
before you can comment on or make changes to this bug.
Description
•