Bug 1387910 - Set content property other than neither 'normal' nor 'none' to generate pseudo element properly. r?boris
MozReview-Commit-ID: AAGCZOXFMOk
--- 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();