1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibWeb: Start adding support for the <iframe> element! :^)

This patch introduces a bunch of things:

- Subframes (Web::Frame::create_subframe())
- HTMLIFrameElement (loads and owns the hosted Web::Frame)
- LayoutFrame (layout and rendering of the hosted frame)

There's still a huge number of things missing, like scrolling, overflow
handling, event handling, scripting, etc. But we can make a little
iframe in a document and it actually renders another document there.
I think that's pretty cool! :^)
This commit is contained in:
Andreas Kling 2020-06-05 23:36:02 +02:00
parent f2aa21ebc4
commit 422bbe98a5
13 changed files with 321 additions and 0 deletions

View file

@ -0,0 +1,2 @@
This is inside the frame!
<img src=90s-bg.png>

View file

@ -0,0 +1,6 @@
<body>
<p>This page has an iframe in it
<p>Cool huh?
<iframe width=300 height=200 src="iframe-subframe.html" style="border: 1px solid #444"></iframe>
<p><b>this text is after the iframe</b>
</body>

View file

@ -28,6 +28,7 @@ span#ua {
<p>Your user agent is: <b><span id="ua"></span></b></p>
<p>Some small test pages:</p>
<ul>
<li><a href="iframe.html">iframe</a></li>
<li><a href="many-buggies.html">many buggies</a></li>
<li><a href="palette.html">system palette color css extension</a></li>
<li><a href="inline-block-link.html">link inside display: inline-block</a></li>