Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: LayoutTests/css3/flexbox/repaint-opacity-change.html

Issue 138683005: Avoid forcing layout on children with orthogonal flow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressing Ojan's comments Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/repaint-opacity-change-expected.txt » ('j') | Source/core/rendering/RenderFlexibleBox.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698