[Webkit-unassigned] [Bug 204554] transition-property is not computed correctly when transition-duration is set to "inherit"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 25 06:39:27 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=204554
--- Comment #4 from Antti Koivisto <koivisto at iki.fi> ---
I think I see the bug generated style building code. Besides duration this also inherits Animation::animationMode() enum which affects interpretation of Animation::property().
static void applyInheritTransitionDuration(BuilderState& builderState)
{
auto& list = builderState.style().ensureTransitions();
auto* parentList = builderState.parentStyle().transitions();
size_t i = 0, parentSize = parentList ? parentList->size() : 0;
for ( ; i < parentSize && parentList->animation(i).isDurationSet(); ++i) {
if (list.size() <= i)
list.append(Animation::create());
list.animation(i).setDuration(parentList->animation(i).duration());
list.animation(i).setAnimationMode(parentList->animation(i).animationMode());
}
// Reset any remaining animations to not have the property set.
for ( ; i < list.size(); ++i)
list.animation(i).clearDuration();
}
--
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/20191125/3cba6155/attachment-0001.htm>
More information about the webkit-unassigned
mailing list