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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled.html

Issue 2194913002: Ensure that we consistently check contains: paint for fixed position containment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 div { 3 div {
4 width: 100px; 4 width: 100px;
5 height: 50px; 5 height: 50px;
6 } 6 }
7 .container { 7 .container {
8 contain: paint; 8 contain: paint;
9 background-color: green; 9 background-color: red;
10 } 10 }
11 .fixed { 11 .fixed {
12 position: fixed; 12 position: fixed;
13 top: 0px; 13 top: 0px;
14 left: 100px; 14 left: 0px;
15 background-color: red; 15 background-color: green;
16 } 16 }
17 .inline { 17 .inline {
18 display: inline-block; 18 display: inline-block;
19 } 19 }
20 .spacer {
21 position:absolute;
22 height: 2000px;
23 }
20 </style> 24 </style>
25 <script>
26 onload = function() {
27 window.scrollTo(0, 25);
28 };
29 </script>
21 <body> 30 <body>
31 <div class="spacer"></div>
22 <div class="container"><div class="fixed"></div></div> 32 <div class="container"><div class="fixed"></div></div>
23 <div class="container inline"><div class="fixed"></div></div> 33 <div class="container inline"><div class="fixed"></div></div>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/containment/paint-containment-with-fixed-position-scrolled-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698