| Index: third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-in-document-tree-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-in-document-tree-crash.html b/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-in-document-tree-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..126ab9e951de221572192bbfa0d0b1be355631fe
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/shadow-dom/crashes/slots-in-document-tree-crash.html
|
| @@ -0,0 +1,12 @@
|
| +<!DOCTYPE html>
|
| +<script src='../../resources/testharness.js'></script>
|
| +<script src='../../resources/testharnessreport.js'></script>
|
| +<div id='p1'><slot><div id='c1'></div></slot></div>
|
| +<script>
|
| +test(() => {
|
| + document.body.offsetLeft;
|
| + const doc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html");
|
| + doc.adoptNode(c1);
|
| + p1.style.display = "none";
|
| +}, "Slots in a document tree should not cause a crash.");
|
| +</script>
|
|
|