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

Unified Diff: LayoutTests/compositing/squashing/squash-above-fixed-subpixel-1.html

Issue 143283011: Make squashing work with subpixel layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add ASSERT 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/squashing/squash-above-fixed-subpixel-1.html
diff --git a/LayoutTests/compositing/squashing/squash-above-fixed-subpixel-1.html b/LayoutTests/compositing/squashing/squash-above-fixed-subpixel-1.html
new file mode 100644
index 0000000000000000000000000000000000000000..031a641484af3a12750f9b3a8f6fd1c14e8276c4
--- /dev/null
+++ b/LayoutTests/compositing/squashing/squash-above-fixed-subpixel-1.html
@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+.composited {
+ -webkit-transform: translateZ(0);
+}
+
+.background {
+ position: fixed;
+ background-color: lightgray;
+ width: 300px;
+ height: 300px;
+ top: 150px;
+ left: 100px;
+}
+
+.cyan {
+ background-color: cyan;
+}
+
+.lime {
+ background-color: lime;
+}
+
+.overlapping {
+ position: relative;
+ z-index: 1;
+ width: 200px;
+ height: 100.5px;
+}
+
+.nonsubpixel {
+ position: relative;
+ z-index: 1;
+ width: 200px;
+ height: 100px;
+}
+
+#description {
+ position: absolute;
+ top: 100px;
+ left: 450px;
+ width: 300px;
+}
+
+#testResults {
+ display: none;
+}
+
+body {
+ margin: 0px;
+}
+</style>
+
+<script>
+ if (window.internals) {
+ internals.settings.setLayerSquashingEnabled(true);
+ }
+
+</script>
+</head>
+
+<body>
+
+ <div id="description">
+ <p>This scenario tests that content is rendered correctly when the
+ squashing composited layer is itself at an integral position but contains
+ a render layer whose position is non-integral.</p>
+ </div>
+
+ <div class="composited background"> </div>
+
+ <div id="paragraph-a" class="nonsubpixel cyan"></div>
+ <div id="paragraph-b" class="overlapping lime"></div>
+ <div id="paragraph-c" class="overlapping cyan"></div>
+ <div id="paragraph-d" class="overlapping lime"></div>
+ <div id="paragraph-e" class="overlapping cyan"></div>
+ <div id="paragraph-f" class="overlapping lime"></div>
+ <div id="paragraph-g" class="overlapping cyan"></div>
+ <div id="paragraph-h" class="overlapping lime"></div>
+ <div id="paragraph-i" class="overlapping cyan"></div>
+ <div id="paragraph-j" class="overlapping lime"></div>
+ <div id="paragraph-k" class="overlapping cyan"></div>
+ <div id="paragraph-l" class="overlapping lime"></div>
+ <div id="paragraph-m" class="overlapping cyan"></div>
+ <div id="paragraph-n" class="overlapping lime"></div>
+
+</body>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698