summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-transitions/background-color-with-opacity.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-transitions/background-color-with-opacity.html')
-rw-r--r--layout/reftests/css-transitions/background-color-with-opacity.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layout/reftests/css-transitions/background-color-with-opacity.html b/layout/reftests/css-transitions/background-color-with-opacity.html
new file mode 100644
index 0000000000..bbbd6524f9
--- /dev/null
+++ b/layout/reftests/css-transitions/background-color-with-opacity.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html class="reftest-wait reftest-no-flush">
+<style>
+#target {
+ background-color: green;
+ width: 100px;
+ height: 100px;
+ transition: background-color 100s steps(1, end);
+ opacity: 0.5;
+}
+#target.hover {
+ background-color: white;
+}
+</style>
+<div id="target"></div>
+<script>
+document.addEventListener('MozReftestInvalidate', () => {
+ target.className = 'hover';
+ target.addEventListener('transitionstart', () => {
+ document.documentElement.classList.remove('reftest-wait');
+ });
+}, false);
+</script>
+</html>