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

Side by Side Diff: LayoutTests/compositing/background-color/background-color-change-to-transparent.html

Issue 63943006: Re-enable solid background color optimization for composited layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix build bot Created 7 years 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
OLDNEW
(Empty)
1 <!DOCTYPE>
2 <html>
3 <head>
4 <style type="text/css" media="screen">
5 #background {
6 width: 200px;
7 height: 200px;
8 display: block;
9 background-color: green;
10 }
11 .blue {
12 width: 50px;
13 height: 50px;
14 background-color: blue;
15 display: block;
16 }
17
18 .composited {
19 -webkit-transform: translateZ(0);
20 }
21 </style>
22 <script type="text/javascript" charset="utf-8">
23 if (window.testRunner) {
24 testRunner.waitUntilDone();
25 testRunner.dumpAsTextWithPixelResults();
26 }
27 function doTest()
28 {
29 var bg = document.getElementById("background");
30
31 window.setTimeout(function() {
32 bg.style.backgroundColor = "transparent";
33 if (window.testRunner) {
34 window.setTimeout(function() {
35 testRunner.notifyDone();
36 }, 0);
37 }
38 }, 0);
39 }
40
41 window.addEventListener('load', doTest, false);
42 </script>
43 </head>
44 <body>
45 <div id="background" class="composited">
46 <div class="blue composited">
47 </div>
48 </div>
49 </body>
50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698