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

Side by Side Diff: LayoutTests/compositing/change-from-paints-into-ancestor-to-paints-into-own-backing-for-intrinsic-reason.html

Issue 512293002: Fix paint invalidation when composited layers change from paints-into-ancestor to self-painting. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <style>
pdr. 2014/08/28 20:21:13 Nits: Add <!DOCTYPE html>, remove extra space betw
chrishtr 2014/08/28 20:27:56 Done.
2 .spinner {
3 backface-visibility: hidden;
4 background-color: blue;
5 height: 100px;
6 width: 100px;
7 }
8
9 .transparent {
10 opacity: 0;
11 }
12
13 #container {
14 -webkit-perspective: 1px;
15 background-color: red;
16 overflow: hidden;
17 }
18 </style>
19 <script src="../fast/repaint/resources/text-based-repaint.js"></script>
20 <div id="container">
21 <div class="spinner"></div>
22 <br>
23 <button onclick="repaintTest()">Close</button>
24 </div>
25 <script>
26 // Tests that transitioning the container div from "composited but paints into ancestor" into "composited into own backing"
27 // for intrinsic reasons (in this case due to opacity change) correctly invalida tes the old paint invalidation backing (document)
28 // before the change.
29 function repaintTest() {
30 document.getElementById('container').classList.add('transparent');
31 }
32 if (window.testRunner)
33 runRepaintTest();
34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698