AllowTransparency in embed iframe

Would it be possible to set allowtransparency to true on the iframe in embeds?

If it can’t be enabled by default (I don’t know if there’s any security risks around it etc), maybe it could be an option passed via the DiscourseEmbed object?

Reasoning:

I’d like to get the comments on this page looking exactly like the other sections. That would be possible with allowtransparency, and it feels a bit hacky to write JS to watch for the iframe to set it that way.

3 Likes

Hey @garry,

First sorry it took so long to reply here. Now about your feature request, would adding this extra attribute in a plugin work for you? If that is helpful I can probably create a simple one for you.

3 Likes