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

Unified Diff: LayoutTests/compositing/child-transform-layer-requires-box.html

Issue 239513010: Only boxes should have child transform layers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address reviewer feedback. Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/compositing/child-transform-layer-requires-box-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/child-transform-layer-requires-box.html
diff --git a/LayoutTests/compositing/child-transform-layer-requires-box.html b/LayoutTests/compositing/child-transform-layer-requires-box.html
new file mode 100644
index 0000000000000000000000000000000000000000..ca85ba12c482dd2f74df844bda0ffd2595ddf7ec
--- /dev/null
+++ b/LayoutTests/compositing/child-transform-layer-requires-box.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML>
+<style>
+</style>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ onload = function() {
+ el0=document.createElement('a'); el0.setAttribute('id','el0'); document.body.appendChild(el0);
+ el4=document.createElement('input'); el4.setAttribute('id','el4'); el0.appendChild(el4);
+ document.querySelector('style').appendChild(document.createTextNode('#el0 { -webkit-perspective:800 }'));
+ document.querySelector('style').appendChild(document.createTextNode('#el0 { opacity:0 }'));
+ document.querySelector('style').appendChild(document.createTextNode('#el4 { -webkit-transform:translate3d(0,20px,0) }'));
+ }
+</script>
+<!--
+This test causes a situation where we have a non-box element (a RenderInline) with
+a perspective applied to it. This should not invoke the perspective machinery in the
+CompositedLayerMapping or it will crash.
+-->
+<body>
+This test passes if it does not crash.
+</body>
« no previous file with comments | « no previous file | LayoutTests/compositing/child-transform-layer-requires-box-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698