Skip to content

[CLOSED] Fix #10142. LiveDev2: Firefox highlight does not have fade-away effect. #9002

@core-ai-bot

Description

@core-ai-bot

Issue by busykai
Thursday Dec 11, 2014 at 18:34 GMT
Originally opened as adobe/brackets#10151


Fixes #10142.

Wait a little longer for the highlight element to take it's initial state. If
the element is not yet in its initial state, the transition does not happen. It
seems like on Firefox/Gecko it takes longer than on Chrome/Webkit.

This is a quote from MDN article on subject:

Care should also be taken when using a transition immediately after adding the element to the DOM using .appendChild() or removing its display: none; property. This is seen as if the initial state had never occurred and the element was always in its final state. The easy way to overcome this limitation is to apply a window.setTimeout() of a handful of milliseconds before changing the CSS property you intend to transition to.

CC:@dangoor,@redmunds


busykai included the following code: https://github.com/adobe/brackets/pull/10151/commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions