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

Unified Diff: LayoutTests/compositing/fixed-position-opaque-compositing.html

Issue 1298493003: Currently we only composite fixed position elements if we are on High DPI devices. This fix allows … Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update affected tests Created 5 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/fixed-position-opaque-compositing.html
diff --git a/LayoutTests/compositing/fixed-position-opaque-compositing.html b/LayoutTests/compositing/fixed-position-opaque-compositing.html
new file mode 100644
index 0000000000000000000000000000000000000000..a1d42217eba02656466e136cb5cd385393b5e513
--- /dev/null
+++ b/LayoutTests/compositing/fixed-position-opaque-compositing.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ body {
+ margin: 0;
+ background-color: #fff;
+ height: 2000px;
+ }
+
+ .Box {
+ width: 250px;
+ height: 250px;
+ position: fixed;
+ top: 0;
+ }
+ .Box-opaque {
+ background-color: green;
+ left: 0;
+ }
+ .Box-transparent {
+ background-color: rgba(0, 128, 0, 0.99);
+ left: 300px;
+ }
+ </style>
+
+ <script>
+ window.addEventListener('load', function() {
+ if (window.testRunner && window.internals) {
+ window.testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document));
+ }
+ })
+ </script>
+</head>
+<body>
+ <div class="Box Box-opaque"></div>
+ <div class="Box Box-transparent"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698