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

Unified Diff: LayoutTests/compositing/layer-creation/resources/fixed-position-nonscrollable-body.html

Issue 13828004: Avoid compositing fixed-position elements if they cannot scroll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and addressed feedback Created 7 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
Index: LayoutTests/compositing/layer-creation/resources/fixed-position-nonscrollable-body.html
diff --git a/LayoutTests/compositing/layer-creation/resources/fixed-position-nonscrollable-body.html b/LayoutTests/compositing/layer-creation/resources/fixed-position-nonscrollable-body.html
new file mode 100644
index 0000000000000000000000000000000000000000..f42f506ae7351746762a393da7527429f31d5743
--- /dev/null
+++ b/LayoutTests/compositing/layer-creation/resources/fixed-position-nonscrollable-body.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+ <style>
+ .fixed {
+ position: fixed;
+ z-index: 1;
+ }
+
+ .absolute {
+ position: absolute;
+ }
+
+ .unscrollable {
+ overflow-x: hidden;
+ overflow-y: hidden;
+ }
+
+ .box {
+ top: 10px;
+ left: 10px;
+ width: 100px;
+ height: 100px;
+ }
+
+ .red {
+ background-color: red;
+ }
+
+ .lime {
+ background-color: lime;
+ }
+
+ .composited {
+ -webkit-transform: translatez(0);
+ }
+ </style>
+</head>
+
+<body class="unscrollable">
+ <div style="height: 4000px">
+ <!-- This iframe should have no additional layers, because the body is unscrollable and there is
+ no need to composite the green fixed-position layer. -->
+ <pre id="layertree"></pre>
+ </div>
+
+ <!-- This should not be composited -->
+ <div class="fixed lime box"></div>
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698