swc/crates/swc_html_parser/tests/fixture/element/custom-element/input.html
2022-05-14 01:43:52 +00:00

32 lines
877 B
HTML

<!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<popup-info img="img/alt.png" data-text="Your card validation code (CVC)
is an extra security feature — it is the last 3 or 4 numbers on the
back of your card."></popup-info>
<custom-square l="100" c="red"></custom-square>
<app-drawer open disabled></app-drawer>
<share-buttons>
<social-button type="twitter"><a href="...">Twitter</a></social-button>
<social-button type="fb"><a href="...">Facebook</a></social-button>
<social-button type="plus"><a href="...">G+</a></social-button>
</share-buttons>
<x-foo-with-markup>
<b>I'm an x-foo-with-markup!</b>
</x-foo-with-markup>
<template id="x-foo-from-template">
<style>
p { color: green; }
</style>
<p>I'm in Shadow DOM. My markup was stamped from a &lt;template&gt;.</p>
</template>
</body>
</html>