Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/pagination/pagination-change-clip-crash.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/pagination/pagination-change-clip-crash.html b/third_party/WebKit/LayoutTests/paint/pagination/pagination-change-clip-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf5bbc352a78d8d381a8d4821463626b39871290 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/pagination/pagination-change-clip-crash.html |
| @@ -0,0 +1,28 @@ |
| +<!doctype HTML> |
| +<script src="../invalidation/resources/text-based-repaint.js"></script> |
| +<div id=multicol style="columns:3;"> |
| + <div style="height:300px; background:white;"> |
| + </div> |
| +</div> |
| +<div style="width: 10px; height: 300px"></div> |
| +<style> |
| +.composited { |
| + transform: translateZ(0); |
| + } |
| +</style> |
| +<script> |
| +if (window.internals) |
| + window.internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = true; |
|
Xianzhu
2017/04/18 00:15:21
This is unnecessary because we always check for un
chrishtr
2017/04/18 21:13:13
Done.
|
| +if (window.testRunner) |
| + window.testRunner.waitUntilDone(); |
|
Xianzhu
2017/04/18 00:15:21
Similar.
chrishtr
2017/04/18 21:13:13
Done.
|
| + |
| +function repaintTest() { |
| + window.requestAnimationFrame(function() { |
|
Xianzhu
2017/04/18 00:15:21
Is requestAnimationFrame necessary?
chrishtr
2017/04/18 21:13:13
Done. Good catches.
I seemed to need these in an e
|
| + background.style.padding = "50px"; |
| + }); |
| +} |
| + |
| +window.testIsAsync = true; |
| +onload = runRepaintTest; |
| +</script> |
| +<div class="composited" style="height:200px" id="background"> |
|
Xianzhu
2017/04/18 00:15:21
Put all dom elements together (not separated by st
chrishtr
2017/04/18 21:13:13
Done.
|