From 2291b0ba4f1ae60ffad8ccd118e5fb7b3602f4e3 Mon Sep 17 00:00:00 2001 From: Chris Harrelson <3453258+chrishtr@users.noreply.github.com> Date: Mon, 19 May 2025 15:11:11 -0700 Subject: [PATCH] Create responsive-iframes-explainer.md --- css-sizing-4/responsive-iframes-explainer.md | 51 ++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 css-sizing-4/responsive-iframes-explainer.md diff --git a/css-sizing-4/responsive-iframes-explainer.md b/css-sizing-4/responsive-iframes-explainer.md new file mode 100644 index 000000000000..12f9f298ee10 --- /dev/null +++ b/css-sizing-4/responsive-iframes-explainer.md @@ -0,0 +1,51 @@ +# Responsive iframes + +## Problem description + +[Iframes]([url](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe)) are very useful for sandboxing web content into different documents. The options currently available are: + 1. A [same-origin]([url](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy)) iframe, which provides full style & +layout isolation, and by-default script isolation. This prevents the parent and child documents from accidentally interfering with each other. + 2. A cross-origin iframe, which additionally provides robust security against untrusted embedders or embedees. + +In addition, iframes participate in the layout of the parent document, via the style and layout of their owning `