Bug 1387910 - Set content property other than neither 'normal' nor 'none' to generate pseudo element properly. r?boris draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Mon, 07 Aug 2017 11:35:36 +0900
changeset 641456 2e37e0779a0474d086a970c1901729e411c88851
parent 641249 fe6609d22dfdd710b11e3ac7773aff89f7a8d12c
child 724792 a7e55eec6ca9ca2941467a36c138c5e2ac6ba409
push id72527
push userhikezoe@mozilla.com
push dateMon, 07 Aug 2017 02:35:52 +0000
reviewersboris
bugs1387910
milestone57.0a1
Bug 1387910 - Set content property other than neither 'normal' nor 'none' to generate pseudo element properly. r?boris MozReview-Commit-ID: AAGCZOXFMOk
dom/base/test/file_domwindowutils_animation.html
--- a/dom/base/test/file_domwindowutils_animation.html
+++ b/dom/base/test/file_domwindowutils_animation.html
@@ -80,17 +80,17 @@ function test_getUnanimatedComputedStyle
         }
         checkUnanimatedComputedStyle(property, initialStyle, null,
                                      expectedInitialStyle,
                                      expectedDuringTransitionStyle,
                                      cssTransition, "CSS Transitions");
       }
 
       addStyle([cssAnimationStyle,
-                ".pseudo::before { animation: cssanimation 1s; }"]);
+                ".pseudo::before { animation: cssanimation 1s; content: ''}"]);
       const pseudoAnimation = target => {
         target.classList.add("pseudo");
         return target.getAnimations({ subtree: true })[0];
       }
       checkUnanimatedComputedStyle(property, initialStyle, "::before",
                                    expectedInitialStyle, expectedInitialStyle,
                                    pseudoAnimation, "Animation at pseudo");
       deleteStyle();