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

Side by Side Diff: LayoutTests/fast/css/sticky/remove-inline-sticky-crash.html

Issue 346603007: Remove position: sticky (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <style>
6 body {
7 margin: 0;
8 height: 2000px;
9 }
10
11 .box {
12 width: 200px;
13 height: 200px;
14 }
15
16 .sticky {
17 position: sticky;
18 top: 100px;
19 background-color: green;
20 }
21 </style>
22 <script>
23 if (window.testRunner)
24 testRunner.dumpAsText();
25
26 function doTest()
27 {
28 var stickyBox = document.getElementById('sticky');
29 stickyBox.parentNode.removeChild(stickyBox);
30 window.scrollTo(0, 10);
31 }
32 window.addEventListener('load', doTest, false);
33 </script>
34 </head>
35 <body>
36 <p>This test should not crash</p>
37 <span id="sticky" class="sticky box"></span>
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698