blob: 0083aa6878e6750bd877b4d0bffee4d8a816d7fa [file] [log] [blame]
<iframe id=frame srcdoc="
<style>
@media (min-width:200px) {
@font-face {
font-family: family1;
src: local(times);
}
body { background-color: red }
}
@media (max-width:200px) {
@font-face {
font-family: family1;
src: local(courier);
}
body { background-color: green }
}
body { font-family:family1 }
</style>
Test frame
"></iframe>
<script>
frame.onload = () => {
frame.contentDocument.offsetWidth;
frame.width = 100;
}
</script>