[Webkit-unassigned] [Bug 279516] New: [css-transitions] `transition-behavior: allow-discrete` may not start a transition for a custom property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 11 08:21:31 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=279516

            Bug ID: 279516
           Summary: [css-transitions] `transition-behavior:
                    allow-discrete` may not start a transition for a
                    custom property
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Animations
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: graouts at webkit.org
                CC: graouts at apple.com

Created attachment 472524

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

Test

Consider the attached test case which does the following:

    const target = document.body;
    target.style.setProperty("--foo", "10");
    getComputedStyle(target).getPropertyValue("--foo");
    target.style.transition = "--foo 1s allow-discrete";
    target.style.setProperty("--foo", "20");

This does not yield a transition. I believe this is because we enter the `transitionPropertiesContainAll` code path under `Styleable::updateCSSTransitions()` which fails to account for custom properties, or at least non-registered properties.

-- 
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/20240911/d472f722/attachment.htm>


More information about the webkit-unassigned mailing list