We had a test for this but it didn't get to the buggy line because the opacity animation in the test started at 1. Fixed, and also added a test for a compositor animation. Differential Revision: https://phabricator.services.mozilla.com/D201355