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

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: Now with expected results! 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..63ffcc2ee3884a83462a23bf7b8e51111163a441
--- /dev/null
+++ b/LayoutTests/css3/flexbox/repaint-opacity-change.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../fast/repaint/resources/text-based-repaint.js" type="text/javascript"></script>
+<script>
+function repaintTest()
+{
+ if (window.testRunner) {
+ document.getElementById('one').style.opacity = '0.5';
+ document.body.offsetTop;
+ document.getElementById('one').style.opacity = '1';
+ document.body.offsetTop;
+ }
+}
+</script>
+<style>
+.exp {
+ margin: 10px;
+ padding: 10px;
+ opacity: 1;
+}
+.btn {
ojan 2014/01/14 22:05:02 Wat?
+ background-color: cyan;
+ padding: 10px;
+ margin: 10px;
+}
+.flex {
+ display: flex;
+ flex-direction: column;
+}
+</style>
+</head>
+<body onload="runRepaintTest()">
+<div class="flex">
+ <div class="exp" id="one"></div>
+ <div class="exp" id="two"></div>
+</div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698