зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a3717f8ee4
Коммит
909b97b554
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче