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

Side by Side Diff: LayoutTests/compositing/overflow/fixed-position-ancestor-clip.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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> 1 <!DOCTYPE>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <title>Position fixed with transform</title> 5 <title>Position fixed with transform</title>
6 <style type="text/css" media="screen"> 6 <style type="text/css" media="screen">
7 body { 7 body {
8 height: 1000px; 8 height: 1000px;
9 width: 1000px; 9 width: 1000px;
10 } 10 }
11 #fixed { 11 #fixed {
12 position: fixed; 12 position: fixed;
13 width: 100px; 13 width: 100px;
14 height: 100px; 14 height: 100px;
15 background-color: red; 15 background-color: red;
16 overflow: hidden; 16 overflow: hidden;
17 } 17 }
18 18
19 .box { 19 .box {
20 width: 100px; 20 width: 100px;
21 height: 100px; 21 height: 100px;
22 background-color: green; 22 background-color: green;
23 -webkit-transform: translateZ(0); 23 transform: translateZ(0);
24 } 24 }
25 25
26 p { 26 p {
27 position: absolute; 27 position: absolute;
28 left: 50px; 28 left: 50px;
29 top: 150px; 29 top: 150px;
30 } 30 }
31 </style> 31 </style>
32 <script type="text/javascript" charset="utf-8"> 32 <script type="text/javascript" charset="utf-8">
33 window.addEventListener('load', function() { 33 window.addEventListener('load', function() {
34 window.scrollBy(50, 50); 34 window.scrollBy(50, 50);
35 }, false); 35 }, false);
36 </script> 36 </script>
37 <script src="../resources/mock_scrollbars.js"></script> 37 <script src="../resources/mock_scrollbars.js"></script>
38 </head> 38 </head>
39 <body> 39 <body>
40 40
41 <p>You should see a single green square, with no red.</p> 41 <p>You should see a single green square, with no red.</p>
42 <div id="fixed"> 42 <div id="fixed">
43 <div class="box"> 43 <div class="box">
44 </div> 44 </div>
45 </div> 45 </div>
46 46
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698