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

Side by Side Diff: LayoutTests/fast/block/positioning/fixed-position-stacking-context2.html

Issue 206463009: Rip out Settings::fixedPositionCreatesStackingContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Fixed position elements do establish stacking contexts with setting enabl ed</title> 2 <title>Fixed position elements do establish stacking contexts with setting enabl ed</title>
3 <style> 3 <style>
4 div { 4 div {
5 height: 100px; 5 height: 100px;
6 width: 100px; 6 width: 100px;
7 margin: 0; 7 margin: 0;
8 padding: 0; 8 padding: 0;
9 top: 0; 9 top: 0;
10 left: 0; 10 left: 0;
11 position:fixed; 11 position:fixed;
12 } 12 }
13 13
14 .green { 14 .green {
15 position:fixed; 15 position:fixed;
16 background: green; 16 background: green;
17 z-index: 1; 17 z-index: 1;
18 } 18 }
19 19
20 .red { 20 .red {
21 position:fixed; 21 position:fixed;
22 background: red; 22 background: red;
23 z-index: 2; 23 z-index: 2;
24 } 24 }
25 </style> 25 </style>
26 <script>
27 if ("internals" in window) {
28 window.internals.settings.setFixedPositionCreatesStackingContext(true);
29 } else {
30 document.write("This test depends on the FixedPositionCreatesStackingContext setting being true, so run in DumpRenderTree or manually enable it");
31 }
32 </script>
33 <div class="green"></div> 26 <div class="green"></div>
34 <div class="container"> 27 <div class="container">
35 <div class="green"></div> 28 <div class="green"></div>
36 <div class="red"></div> 29 <div class="red"></div>
37 </div> 30 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698