Chromium Code Reviews| Index: LayoutTests/compositing/squashing/squashed-layer-color-update.html |
| diff --git a/LayoutTests/compositing/squashing/squashed-layer-color-update.html b/LayoutTests/compositing/squashing/squashed-layer-color-update.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eea720c513e49cd7a08d8317685f29d4ec13617f |
| --- /dev/null |
| +++ b/LayoutTests/compositing/squashing/squashed-layer-color-update.html |
| @@ -0,0 +1,46 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| + <style> |
| + .squashed { |
| + height: 40px; |
| + width: 40px; |
| + background-color: lightgreen; |
| + position: absolute; |
| + top: 90px; |
| + } |
| + .composited { |
| + position: absolute; |
| + margin-top: 5px; |
| + height: 100px; |
| + width: 100px; |
| + background-color: lightblue; |
| + -webkit-transform: translateZ(1px); |
| + } |
| + </style> |
| + <script> |
| + onload = function() { |
| + if (window.testRunner) { |
| + testRunner.waitUntilDone(); |
| + internals.settings.setLayerSquashingEnabled(true); |
| + } |
| + |
| + var target = document.getElementById('target3'); |
| + setTimeout(function() { |
|
abarth-chromium
2014/03/17 17:17:03
Why set timeout? If you're trying to synchronize
chrishtr
2014/03/17 18:10:55
Done.
|
| + target.style.backgroundColor = 'green'; |
| + getComputedStyle(target).backgroundColor; |
| + setTimeout(function() { |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + }); |
| + }, 100); |
| + |
| + } |
| + </script> |
| +</head> |
| +<body> |
| + <div id="target2" class="second composited"> |
| + </div> |
| + <div id="target3" class="squashed"></div> |
| +</body> |
| +</html> |