Index: third_party/WebKit/LayoutTests/animations/resources/composited-animation-test.js |
diff --git a/third_party/WebKit/LayoutTests/animations/resources/composited-animation-test.js b/third_party/WebKit/LayoutTests/animations/resources/composited-animation-test.js |
index 3b5fc0020a4a13fc181186abe5d9fed89c3ed012..c542583f92558c3a7986a8a1d6782222ff95879b 100644 |
--- a/third_party/WebKit/LayoutTests/animations/resources/composited-animation-test.js |
+++ b/third_party/WebKit/LayoutTests/animations/resources/composited-animation-test.js |
@@ -34,6 +34,8 @@ class CompositedAnimationTestCommon { |
createStaticElements() { |
this.error = document.createElement('span'); |
this.error.style.color = 'red'; |
+ // The element must have some painted content in order to be composited. |
+ this.error.textContent = 'x'; |
document.body.appendChild(this.error); |
this.wrapper = document.createElement('div'); |