Index: LayoutTests/compositing/layer-creation/translatez-removed.html |
diff --git a/LayoutTests/compositing/layer-creation/translatez-removed.html b/LayoutTests/compositing/layer-creation/translatez-removed.html |
index de9d0e45b9f11bffe4182b42ad5a5a7403a0ddc9..2a990faa618a4073305c8833359c365ead7b79ac 100644 |
--- a/LayoutTests/compositing/layer-creation/translatez-removed.html |
+++ b/LayoutTests/compositing/layer-creation/translatez-removed.html |
@@ -1,52 +1,36 @@ |
<!DOCTYPE html> |
+<style> |
+.box { |
+ height: 200px; |
+ width: 200px; |
+ margin: 10px; |
+ padding: 5px; |
+ background-color: blue; |
+} |
-<html> |
-<head> |
- <style type="text/css" media="screen"> |
- .box { |
- height: 200px; |
- width: 200px; |
- margin: 10px; |
- padding: 5px; |
- background-color: blue; |
- } |
- |
- .composited { |
- -webkit-transform: translateZ(0); |
- } |
+.composited { |
+ -webkit-transform: translateZ(0); |
+} |
- #trigger { |
- width: 20px; |
- height: 20px; |
- background-color: silver; |
- } |
+#trigger { |
+ width: 20px; |
+ height: 20px; |
+ background-color: silver; |
+} |
+</style> |
+<script> |
+if (window.testRunner) |
+ window.testRunner.dumpAsText(); |
- </style> |
- <script type="text/javascript" charset="utf-8"> |
- if (window.testRunner) { |
- window.testRunner.dumpAsText(); |
- } |
- |
- function doTest() |
- { |
- document.getElementById('test').className = 'box'; |
- if (window.testRunner) { |
+function doTest() |
+{ |
+ document.getElementById('test').classList.remove('composited'); |
ojan
2014/06/11 17:57:56
This is a minor change. Explicitly remove the comp
|
+ if (window.testRunner) |
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document); |
- } |
- } |
- window.addEventListener('load', doTest, false); |
- </script> |
-</head> |
-<body> |
- <!-- This test div starts out with a 3d transform, but should be |
- de-promoted from a composited layer before the test completes. --> |
- <div id="test" class="composited box"> |
- </div> |
- <!-- This div exists to keep blink in compositing mode until |
- ForceCompositingMode is always on. --> |
- <div id="trigger" class="composited"> |
ojan
2014/06/11 17:57:56
The only real change here is to remove this div.
|
- </div> |
- |
- <pre id="layers">Layer tree appears here in DRT.</pre> |
-</body> |
-</html> |
+} |
+window.addEventListener('load', doTest, false); |
+</script> |
+<!-- This test div starts out with a 3d transform, but should be |
+ de-promoted from a composited layer before the test completes. --> |
+<div id="test" class="composited box"></div> |
+<pre id="layers">Layer tree appears here in DRT.</pre> |