blob: 6adbbd4e255de4ea9d6a8c722dbc8fa7db4891f6 [file] [log] [blame]
<!--
Copyright 2021 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!DOCTYPE html>
<script>
class LoginElement extends HTMLElement {
constructor() {
super();
const shadow = this.attachShadow({ mode: 'open' });
shadow.innerHTML = `
<p>sss</p>
<button>Login</button>
`;
}
}
customElements.define('login-element', LoginElement);
</script>
<header>
<login-element></login-element>
</header>
<main>
<login-element></login-element>
</main>