Index: third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement-crash-style-recalc-after-dialog-close.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement-crash-style-recalc-after-dialog-close.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement-crash-style-recalc-after-dialog-close.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d76af4834dea648f4a04be056452dd34c70bb460 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement-crash-style-recalc-after-dialog-close.html |
@@ -0,0 +1,10 @@ |
+<!DOCTYPE html> |
+<div>The test passes if it doesn't crash</div> |
+<br> |
+<dialog id="dialog" style="position: relative"> |
+<input> |
+<script> |
+ dialog.show(); |
+ document.body.offsetTop; // force layout |
+ dialog.close(); |
+</script> |