<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://techspecs.iqd-ao.de/en/index.php?action=history&amp;feed=atom&amp;title=Template%3ATransparenteIFrames</id>
	<title>Template:TransparenteIFrames - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://techspecs.iqd-ao.de/en/index.php?action=history&amp;feed=atom&amp;title=Template%3ATransparenteIFrames"/>
	<link rel="alternate" type="text/html" href="https://techspecs.iqd-ao.de/en/index.php?title=Template:TransparenteIFrames&amp;action=history"/>
	<updated>2026-07-28T06:14:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://techspecs.iqd-ao.de/en/index.php?title=Template:TransparenteIFrames&amp;diff=1530&amp;oldid=prev</id>
		<title>Abeneke: Created page with &quot;===Transparent iFrames=== If the color-scheme attribute is not set correctly in the embedded document, the browser may render a system-defined background (e.g. white in light mode, dark gray in dark mode) instead of a transparent background. To ensure that the iFrame background remains truly transparent in all environments, the following code snippet must be added to the HTML file before the closing &lt;syntaxhighlight lang=&quot;html&quot; inline&gt;&lt;/body&gt;&lt;/syntaxhighlight&gt;-tag.  &lt;syn...&quot;</title>
		<link rel="alternate" type="text/html" href="https://techspecs.iqd-ao.de/en/index.php?title=Template:TransparenteIFrames&amp;diff=1530&amp;oldid=prev"/>
		<updated>2026-07-20T13:37:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Transparent iFrames=== If the color-scheme attribute is not set correctly in the embedded document, the browser may render a system-defined background (e.g. white in light mode, dark gray in dark mode) instead of a transparent background. To ensure that the iFrame background remains truly transparent in all environments, the following code snippet must be added to the HTML file before the closing &amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot; inline&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;-tag.  &amp;lt;syn...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Transparent iFrames===&lt;br /&gt;
If the color-scheme attribute is not set correctly in the embedded document, the browser may render a system-defined background (e.g. white in light mode, dark gray in dark mode) instead of a transparent background. To ensure that the iFrame background remains truly transparent in all environments, the following code snippet must be added to the HTML file before the closing &amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot; inline&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;-tag.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&amp;lt;script&amp;gt;&lt;br /&gt;
  window.addEventListener(&amp;quot;message&amp;quot;, (event) =&amp;gt; {&lt;br /&gt;
      const referrer = new URL(document.referrer).hostname;&lt;br /&gt;
      const origin = new URL(event.origin).hostname;&lt;br /&gt;
      &lt;br /&gt;
      if (origin !== referrer || event.data.type !== &amp;quot;iqdIframeTransparency&amp;quot;) return;&lt;br /&gt;
      &lt;br /&gt;
      if (event.data.htmlNeedsColorScheme) document.querySelector(&amp;#039;html&amp;#039;).style.colorScheme = &amp;#039;dark&amp;#039;;&lt;br /&gt;
    });&lt;br /&gt;
&amp;lt;/script&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Abeneke</name></author>
	</entry>
</feed>