Index: third_party/WebKit/LayoutTests/shadow-dom/layout-1.html |
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/layout-1.html b/third_party/WebKit/LayoutTests/shadow-dom/layout-1.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a78298a2d62518a221c728f3b0e2a99271bb3bc5 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/shadow-dom/layout-1.html |
@@ -0,0 +1,7 @@ |
+<!DOCTYPE html> |
+<div id='host'>Child</div> |
+<script> |
+const host = document.querySelector('#host'); |
+host.offsetLeft; // Force layout |
+host.attachShadow({ 'mode': 'open' }); // Child should be detached |
+</script> |