Bug 1331047: Fix test_animations_event_order.html so that we actually have pseudo-elements. r?hiro draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 24 Apr 2017 12:05:26 +0200
changeset 568645 54ed97f40063b9c35f26da984cbb02d4e602ba9f
parent 568644 b50eeee21129d1d7dee0e984ea5793c8b9ccbb57
child 568646 b06b31b54d18d705a0f21f1c60b25c59c48095ec
push id55935
push userbmo:emilio+bugs@crisal.io
push dateWed, 26 Apr 2017 11:57:38 +0000
reviewershiro
bugs1331047
milestone55.0a1
Bug 1331047: Fix test_animations_event_order.html so that we actually have pseudo-elements. r?hiro Took me more time than what I'd like to admit to figure this out. MozReview-Commit-ID: FpphYwxAVC2
layout/style/test/test_animations_event_order.html
--- a/layout/style/test/test_animations_event_order.html
+++ b/layout/style/test/test_animations_event_order.html
@@ -163,16 +163,18 @@ divs.forEach((div, i) => {
   div.setAttribute('id', 'div' + i);
 });
 
 var extraStyle = document.createElement('style');
 document.head.appendChild(extraStyle);
 var sheet = extraStyle.sheet;
 sheet.insertRule('#div0::after { animation: anim 10s }', 0);
 sheet.insertRule('#div0::before { animation: anim 10s }', 1);
+sheet.insertRule('#div0::after, #div0::before { ' +
+                 ' content: " " }', 2);
 getComputedStyle(divs[0]).animationName; // build animation
 getComputedStyle(divs[1]).animationName; // build animation
 
 advance_clock(0);
 checkEventOrder([ divs[0], 'animationstart' ],
                 [ divs[0], '::before', 'animationstart' ],
                 [ divs[0], '::after', 'animationstart' ],
                 [ divs[1], 'animationstart' ],