Files
tubestation/layout/reftests/css-animations/animate-display-table-opacity.html
L. David Baron d25f9af8f7 Bug 1245075 patch 2 - Fix EffectSet::GetEffectSet(nsIFrame*) and EffectCompositor::GetAnimationElementAndPseudoForFrame to only return effects when the frame is the style frame for its content. r=birtles
This means that we won't associate animations with additional frames.
In this case, this fixes associating off-main-thread animations with a
table outer frame, when they should have been associated only with the
table frame.

Locally, the test fails without the patch (with opacity in the test
being 0.36 instead of the expected 0.6), and passes with the patch.
(Opacity 0.36 gives a color of rgb(163,163,255), whereas 0.6 gives
rgb(102,102,255).)
2016-02-07 08:43:49 -08:00

15 lines
276 B
HTML

<!DOCTYPE html>
<title>Testcase for bug 1245075</title>
<style>
@keyframes HoldOpacity {
from, to { opacity: 0.6 }
}
#test {
width: 100px; height: 100px;
background: blue;
display: table;
animation: HoldOpacity 100s linear infinite;
}
</style>
<div id="test"></div>