The standard for the gadget-iframe is to be loaded in quirks-mode. You need to load it in standard-mode you need to add the following attribute.
<Content type="html" view="profile" quirks="false">