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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/sticky/overflow-layer-removed-crash.html

Issue 1870663002: Reland main thread position sticky implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only descend into children which have an ancestor overflow layer. Created 4 years, 8 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 <style>
2 .scroll {
3 overflow: hidden;
4 }
5
6 .layer {
7 will-change: transform;
8 }
9 </style>
10 <script>
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 testRunner.waitUntilDone();
14 }
15
16 function crash() {
17 document.getElementById('scroll').classList.remove('scroll');
18 document.getElementById('scroll').classList.remove('layer');
19 document.getElementById('layer').classList.remove('layer');
20 if (window.testRunner)
21 testRunner.notifyDone();
22 }
23
24 window.onload = function() {
25 // Call crash after 2 rafs.
26 requestAnimationFrame(requestAnimationFrame.bind(null, crash));
27 }
28 </script>
29 <p>This test PASSES if it does not CRASH.</p>
30 <div id="scroll" class="scroll layer">
31 <div class="layer">
32 <div id="layer" class="layer"></div>
33 </div>
34 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698