mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
d4f0084f67
Browser now implement boundingBox(), contentQuads() and layoutViewport().
28 lines
549 B
HTML
28 lines
549 B
HTML
<style>
|
|
body {
|
|
display: flex;
|
|
height: 100%;
|
|
margin: 8px;
|
|
}
|
|
|
|
body iframe {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
}
|
|
::-webkit-scrollbar{
|
|
display: none;
|
|
}
|
|
</style>
|
|
<script>
|
|
async function attachFrame(frameId, url) {
|
|
var frame = document.createElement('iframe');
|
|
frame.src = url;
|
|
frame.id = frameId;
|
|
document.body.appendChild(frame);
|
|
await new Promise(x => frame.onload = x);
|
|
return 'kazakh';
|
|
}
|
|
</script>
|
|
<iframe src='./two-frames.html' name='2frames'></iframe>
|
|
<iframe src='./frame.html' name='aframe'></iframe>
|