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

Unified Diff: LayoutTests/compositing/reorder-z-with-style.html

Issue 215063006: Separate the geometry update from rebuilding the GraphicsLayer tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/reorder-z-with-style.html
diff --git a/LayoutTests/compositing/reorder-z-with-style.html b/LayoutTests/compositing/reorder-z-with-style.html
new file mode 100644
index 0000000000000000000000000000000000000000..0adeb03e8faaa3b0d8beb5e0ec28295f6d357196
--- /dev/null
+++ b/LayoutTests/compositing/reorder-z-with-style.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<style>
+ body {
+ -webkit-transform: translateZ(0);
+ }
+ #container {
+ height: 300px;
+ width: 300px;
+ background-color: green;
+ -webkit-transform: translateZ(0);
+ }
+
+ #parent {
+ position: absolute;
+ left: 400px;
+ width: 300px;
+ height: 300px;
+ background-color: green;
+ -webkit-transform-style: preserve-3d;
+ }
+
+ #child {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ z-index: -2;
+ background-color: red;
+ -webkit-transform: translateZ(0);
+ }
+</style>
+<body>
+<div id="container">
+ <div id="parent">
+ <div id="child"></div>
+ </div>
+</div>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
ojan 2014/03/28 02:26:16 Nit: inconsistent indentation!
+
+requestAnimationFrame(function() {
+ requestAnimationFrame(function() {
+ document.getElementById('parent').style.WebkitTransformStyle = 'flat';
esprehn 2014/03/28 02:24:09 The property is actually lowercase webkitTransform
+ setTimeout(function() {
+ testRunner.notifyDone();
+ });
+ });
+});
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698