Chromium Code Reviews| Index: LayoutTests/fast/repaint/remove-block-after-layout.html |
| diff --git a/LayoutTests/fast/repaint/remove-block-after-layout.html b/LayoutTests/fast/repaint/remove-block-after-layout.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3caaf3fa8e9888bbb306d61593d5551b28fdb520 |
| --- /dev/null |
| +++ b/LayoutTests/fast/repaint/remove-block-after-layout.html |
| @@ -0,0 +1,14 @@ |
| +<!DOCTYPE html> |
| +<script src="resources/text-based-repaint.js"></script> |
| +<script> |
| +function repaintTest() { |
| + var target = document.getElementById('target'); |
| + target.style.left = '200px'; |
| + target.offsetLeft; |
| + target.parentNode.removeChild(target); |
| +} |
| +runRepaintTest(); |
|
dsinclair
2014/07/25 14:16:31
onload = runRepaintTest?
Xianzhu
2014/07/25 17:02:05
I thought this worked and is simpler, but noticed
|
| +</script> |
| +<div id="target" style="position: absolute; width: 100px; height: 100px; background-color: red"> |
| + This div should disappear. |
| +</div> |