[Webkit-unassigned] [Bug 171030] New: CSS transition delayed for elements transitioning text properties

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 19 19:19:36 PDT 2017


            Bug ID: 171030
           Summary: CSS transition delayed for elements transitioning text
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Animations
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bertzhang at rocketmail.com
                CC: dino at apple.com

Created attachment 307540

  --> https://bugs.webkit.org/attachment.cgi?id=307540&action=review

Initial demo of bug (bugged in WebKit, works in FireFox)

When using jQuery to toggle a class for an element (activated by clicking anywhere in the JSFiddle), certain conditions will cause the timing of a CSS transition to be delayed.

In the attached demo (https://jsfiddle.net/sowteck9/4/), the <p>'s should transition together and immediately.

However, the second <p>'s transition is delayed. Commenting out the styling for .first or setting all values to a default value (i.e. inherit, 1em, currentColor, normal, etc.) will cause both <p>'s to be delayed by 1s. The same thing happens with any font-relative length value besides rem (i.e. em, ex, ch, ic, lh, rlh) the property font-size. Commenting out the inner <div> (but not its inner HTML) will cause the bug to not reproduce either.

I have tried the CSS properties color, font-size, letter-spacing, and opacity. Opacity does not trigger the bug, which makes me think that it might be specific to text properties.

I have not tried using vanilla JavaScript (as opposed to jQuery) to reproduce the bug yet.

This bug occurs in Chrome 58.0.3029.81 (64-bit), Safari 10.1 (12603., WebKit 10.1 (12603., r215523), and Opera 44.0.2510.1218. This bug does not occur in Firefox 53.0. These browsers were run on macOS Sierra 10.12.4 64-bit.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170420/251267c9/attachment.html>

More information about the webkit-unassigned mailing list