Bug 252985 - !important properties are not handled correctly when an element has both transition and animation running
Summary: !important properties are not handled correctly when an element has both tran...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-27 04:50 PST by Antti Koivisto
Modified: 2023-03-21 09:04 PDT (History)
4 users (show)

See Also:


Attachments
Test (472 bytes, text/html)
2023-03-21 09:04 PDT, Antoine Quint
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2023-02-27 04:50:18 PST
See the FIXME in TreeResolver::createAnimatedElementUpdate():

            // The cascade may override animated properties and have dependencies to them.
            // FIXME: This is wrong if there are both transitions and animations running on the same element.
            applyCascadeAfterAnimation(*animatedStyle, animatedProperties, styleable.hasRunningTransitions(), *resolvedStyle.matchResult, element, resolutionContext);

We should handle transitions and animations separately.
Comment 1 Radar WebKit Bug Importer 2023-02-27 04:52:40 PST
<rdar://problem/105970843>
Comment 2 Antoine Quint 2023-03-21 09:04:33 PDT
Created attachment 465540 [details]
Test