vscode-string-html/tests/index.js

39 lines
462 B
JavaScript

html`
<style>
:host {
display: block;
}
</style>
<body>
<input type="button" @click=${e => this.click(e)} value="deadmau5 🐭" />
<div></div>
<div></div>
<div></div>
<h3>${['❤️', '💛', '💚', '💙', '💜', '🖤']}</h3>
</body>
`
bug(html` <div></div> `)
function bug() {
html`div...`
}
css`
.foo {
.bar {
color: #f30;
}
}
`
css`
:host {
display: flex;
height: 50px;
}
`
TypeScript 96.4%
JavaScript 3.6%