blob: a46e76b14ca6df80518480dad02ee8732c553dce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8" />
<title>Translations Test</title>
<style>
div {
margin: 10px auto;
width: 300px
}
p {
margin: 47px 0;
font-size: 21px;
line-height: 2;
}
</style>
</head>
<body>
<div id="host">
Esto se contenta en luz dom
<div>
<script>
const host = document.getElementById("host");
const root = host.attachShadow({mode: "open"});
root.innerHTML = "<slot></slot>";
</script>
</body>
</html>
|