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

Unified 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, 1 month 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/compositing/background-color/background-color-change-to-transparent.html
diff --git a/LayoutTests/compositing/background-color/background-color-change-to-transparent.html b/LayoutTests/compositing/background-color/background-color-change-to-transparent.html
new file mode 100644
index 0000000000000000000000000000000000000000..ce6ba6bbebd8b4bc812a3f8dba35046d08daf40c
--- /dev/null
+++ b/LayoutTests/compositing/background-color/background-color-change-to-transparent.html
@@ -0,0 +1,50 @@
+<!DOCTYPE>
+<html>
+<head>
+<style type="text/css" media="screen">
+ #background {
+ width: 200px;
+ height: 200px;
+ display: block;
+ background-color: green;
+ }
+ .blue {
+ width: 50px;
+ height: 50px;
+ background-color: blue;
+ display: block;
+ }
+
+ .composited {
+ -webkit-transform: translateZ(0);
+ }
+</style>
+<script type="text/javascript" charset="utf-8">
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsTextWithPixelResults();
+ }
+ function doTest()
+ {
+ var bg = document.getElementById("background");
+
+ window.setTimeout(function() {
+ bg.style.backgroundColor = "transparent";
+ if (window.testRunner) {
+ window.setTimeout(function() {
+ testRunner.notifyDone();
+ }, 0);
+ }
+ }, 0);
+ }
+
+ window.addEventListener('load', doTest, false);
+</script>
+</head>
+<body>
+<div id="background" class="composited">
+ <div class="blue composited">
+ </div>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698