forked from toji/webgpu-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiframe.html
50 lines (47 loc) · 1.33 KB
/
iframe.html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no'>
<meta name='mobile-web-app-capable' content='yes'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<link rel="icon" type="image/png" sizes="48x48" href="favicon-48.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16.png">
<meta itemprop="image" content="thumb.png">
<link rel="author" href="./humans.txt">
<title>WebGPU in an iframe test</title>
<style>
html, body {
height: 100%;
width: 100%;
margin: 0;
background-color: #660000;
}
#container {
position: absolute;
top: 1em;
bottom: 1em;
left: 0.5em;
right: 0.5em;
display: flex;
}
iframe {
margin-left: 0.5em;
margin-right: 0.5em;
}
#same-origin {
flex-grow: 1;
}
#cross-origin {
flex-grow: 2;
}
</style>
</head>
<body>
<div id="container">
<iframe id="same-origin" src="cube.html"></iframe>
<iframe id="cross-origin" src="https://austin-eng.com/webgpu-samples/samples/helloTriangle"></iframe>
</div>
</body>
</html>