Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are the parent's font faces accessible in an iframe?

Let's say a page declares a font-face in the stylesheets and contains an iframe pointing to a page on another domain. Will the page in an iframe be able to use the font-face from the parent page?

like image 237
Septagram Avatar asked Feb 14 '23 12:02

Septagram


1 Answers

No, it won't. The iframe page doesn't inherit any CSS from the parent page.

You will need to include the style sheet for the font in the iframe page also.

like image 58
Guffa Avatar answered Feb 16 '23 03:02

Guffa