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

Unified Diff: LayoutTests/compositing/overflow/nested-render-surfaces.html

Issue 22620002: Add layout tests for universal overflow scrolling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 4 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/overflow/nested-render-surfaces.html
diff --git a/LayoutTests/compositing/overflow/nested-render-surfaces.html b/LayoutTests/compositing/overflow/nested-render-surfaces.html
new file mode 100644
index 0000000000000000000000000000000000000000..a6b6a78f1fd7b0156482af4ca78cf7d38329df6b
--- /dev/null
+++ b/LayoutTests/compositing/overflow/nested-render-surfaces.html
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+ body {
+ height: 2000px;
+ }
+
+ .container {
+ height: 200px;
+ width: 300px;
+ border: 4px solid black;
+ overflow-y: scroll;
+ resize: both;
+ }
+
+ .contents {
+ height: 1000px;
+ }
+
+ .box {
+ position: relative;
+ z-index: 1;
+ height: 100px;
+ width: 100px;
+ margin: 10px;
+ background-color: blue;
+ }
+
+ .surface {
+ opacity: 0.5;
+ }
+
+ .fixed {
+ position: fixed;
+ z-index: 0;
+ background-color: green;
+ left: 50px;
+ top: 200px;
+ height: 200px;
+ width: 200px;
+ }
+</style>
+<script>
+ function setup() {
+ if (!window.internals) {
+ var pre = document.createElement("pre");
+ pre.innerHTML = "This test ensures that render surfaces grow to "
+ + "accomodate clip children. If this test is working, you "
+ + "should see that the green box is square.";
+ document.body.appendChild(pre);
+ }
+ }
+ window.onload = setup;
+</script>
+</head>
+<body>
+ <div class="surface">
+ <div class="box"></div>
+ <div class="container">
+ <div>
+ <div class="box"></div>
+ <div class="container">
+ <div class="fixed"></div>
+ <div class="box"></div>
+ <div class="box"></div>
+ <div class="box"></div>
+ <div class="box"></div>
+ <div class="box"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/compositing/overflow/nested-render-surfaces-with-intervening-clip.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698