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

Unified Diff: LayoutTests/compositing/contents-opaque/overflow-hidden-child-layers.html

Issue 15925012: Merges two WK fixes for RenderLayer::backgroundIsKnownToBeOpaque. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added DOCTYPE Created 7 years, 7 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/contents-opaque/overflow-hidden-child-layers.html
diff --git a/LayoutTests/compositing/contents-opaque/overflow-hidden-child-layers.html b/LayoutTests/compositing/contents-opaque/overflow-hidden-child-layers.html
new file mode 100644
index 0000000000000000000000000000000000000000..1abf39b78ee9ff061d149d664b2cd74253dc617e
--- /dev/null
+++ b/LayoutTests/compositing/contents-opaque/overflow-hidden-child-layers.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ .box {
+ height: 100px;
+ width: 100px;
+ margin: 50px;
+ background-color: blue;
+ box-shadow: 0 0 20px black;
+ overflow: hidden;
+ -webkit-transform: translateZ(0);
+ }
+ .child {
+ position: relative;
+ top: -30px;
+ left: -30px;
+ width: 300px;
+ height: 300px;
+ background-color: silver;
+ }
+ </style>
+ <script type="text/javascript">
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ function doTest() {
+ if (window.testRunner && window.internals)
+ document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
+ }
+ window.addEventListener('load', doTest, false);
+ </script>
+</head>
+<body>
+
+ <div class="box">
+ <div class="child">
+ </div>
+ </div>
+ <pre id="layertree"></pre>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698