summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/deprecated-flexbox/crash-button-input-autofocus.html
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/deprecated-flexbox/crash-button-input-autofocus.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/deprecated-flexbox/crash-button-input-autofocus.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/deprecated-flexbox/crash-button-input-autofocus.html b/third_party/WebKit/LayoutTests/fast/deprecated-flexbox/crash-button-input-autofocus.html
new file mode 100644
index 0000000..c20eb46
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/deprecated-flexbox/crash-button-input-autofocus.html
@@ -0,0 +1,14 @@
+<html>
+<body>
+<p style="visibility: collapse;"><button><input autofocus><input id="test"></input></button></p>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+document.body.offsetTop;
+document.getElementById('test').parentNode.removeChild(document.getElementById('test'));
+document.body.offsetTop;
+</script>
+<p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=63776">63776</a>: Partial layout when a flex-box has visibility: collapse</p>
+<p>This test PASSES if it does not CRASH.</p>
+</body>
+</html>