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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 body {
6 margin: 0;
7 background-color: #fff;
8 height: 2000px;
9 }
10
11 .Box {
12 width: 250px;
13 height: 250px;
14 position: fixed;
15 top: 0;
16 }
17 .Box-opaque {
18 background-color: green;
19 left: 0;
20 }
21 .Box-transparent {
22 background-color: rgba(0, 128, 0, 0.99);
23 left: 300px;
24 }
25 </style>
26
27 <script>
28 window.addEventListener('load', function() {
29 if (window.testRunner && window.internals) {
30 window.testRunner.setCustomTextOutput(window.internals.layerTreeAsText(doc ument));
31 }
32 })
33 </script>
34 </head>
35 <body>
36 <div class="Box Box-opaque"></div>
37 <div class="Box Box-transparent"></div>
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698