Index: LayoutTests/css3/flexbox/repaint-opacity-change.html |
diff --git a/LayoutTests/css3/flexbox/repaint-opacity-change.html b/LayoutTests/css3/flexbox/repaint-opacity-change.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ce86d76db36d03773bf81db7cf45576d899518f9 |
--- /dev/null |
+++ b/LayoutTests/css3/flexbox/repaint-opacity-change.html |
@@ -0,0 +1,34 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../fast/repaint/resources/text-based-repaint.js" type="text/javascript"></script> |
+<script> |
+function repaintTest() |
+{ |
+ if (window.testRunner) { |
+ var targetElement = document.getElementById('target'); |
+ targetElement.style.opacity = '0.5'; |
+ document.body.offsetTop; |
+ targetElement.style.opacity = '1'; |
+ document.body.offsetTop; |
+ } |
+} |
+</script> |
+<style> |
+.item { |
+ margin: 10px; |
+ padding: 10px; |
+ opacity: 1; |
+} |
+.flex { |
+ display: flex; |
+ flex-direction: column; |
+} |
+</style> |
+</head> |
+<body onload="runRepaintTest()"> |
+<div class="flex"> |
+ <div class="item" id="target"></div> |
+ <div class="item"></div> |
+</div> |
+</body> |