<style>
:root { font-size: 10px }
body { font-size: 12px }
</style>
<body>Outside<iframe src=unit-rem-ref-iframe-inside.html></body>