OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <iframe srcdoc=" | |
3 <base href='http://example.com/from/iframe.html'> | |
4 <style> | |
5 @font-face { | |
6 font-family: faceInIframe; | |
7 src: url('http://127.0.0.1:8000/css/resources/referrer-check.php?from=iframe
&resource=font'); | |
8 } | |
9 .imageInIframe { | |
10 background-image: url('http://127.0.0.1:8000/css/resources/referrer-check.ph
p?from=iframe&resource=image'); | |
11 } | |
12 .imageSetInIframe { | |
13 background-image: -webkit-image-set( | |
14 url('http://127.0.0.1:8000/css/resources/referrer-check.php?from=iframe&
resource=image2') 1x, | |
15 url('http://127.0.0.1:8000/css/resources/referrer-check.php?from=iframe&
resource=image') 1x | |
16 ); | |
17 } | |
18 </style> | |
19 | |
20 <div style='font-family: faceInIframe;'> | |
21 This should be rendered with ahem font. | |
22 </div> | |
23 <div class='imageInIframe'> | |
24 Image in iframe. Background should be dark blue. | |
25 </div> | |
26 <div class='imageSetInIframe'> | |
27 Image set in iframe. Background should be dark blue. | |
28 </div> | |
29 "></iframe> | |
30 | |
31 <script> | |
32 if (window.testRunner) { | |
33 testRunner.waitUntilDone(); | |
34 document.fonts.ready().then(function() { testRunner.notifyDone(); }); | |
35 } | |
36 </script> | |
OLD | NEW |