Bug 1263058. Fix image/test/mochitest/test_animation2.html to test what it is intending to test. r=mstange

opacity >= 0.999 gets interpreted as 1 for painting purposes, so does not serve the purpose of creating a container layer. Use will-change instead.
This commit is contained in:
Timothy Nikkel 2016-04-08 01:13:53 -05:00
Родитель a3717f8ee4
Коммит 909b97b554
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -20,12 +20,12 @@ Mozilla Bug 705580: Test animated GIFs that are converted to ImageLayers
<div id="content">
<!--
Use an opacity of almost-1 to force a ContainerLayer with opacity, and the img as the sole item in the PaintedLayer. It should then
Use will-change: opacity to force a ContainerLayer, and the img as the sole item in the PaintedLayer. It should then
be promoted to an ImageLayer.
-->
<div id="referenceDiv" style="height: 40px; width: 40px;
display: none; background: #2aff00;"></div>
<div id="animatedImage" style="opacity: 0.9999;">
<div id="animatedImage" style="will-change: opacity;">
<img id="animatedGif" src="animated-gif.gif" style="display: none;">
<div id="text-descr"></div>
</div>