OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 @font-face { | 3 @font-face { |
4 font-family: corsOK; | 4 font-family: corsOK; |
5 src: url(http://127.0.0.1:8080/css/resources/cors-ahem.php); | 5 src: url(http://127.0.0.1:8080/css/resources/cors-ahem.php); |
6 } | 6 } |
7 @font-face { | 7 @font-face { |
8 font-family: corsNG; | 8 font-family: corsNG; |
9 src: url(http://127.0.0.1:8080/resources/Ahem.ttf); | 9 src: url(http://127.0.0.1:8080/resources/Ahem.ttf); |
10 } | 10 } |
| 11 @font-face { |
| 12 font-family: redirectCorsNG; |
| 13 src: url(/resources/redirect.php?url=http://127.0.0.1:8080/resources/Ahem.tt
f); |
| 14 } |
11 </style> | 15 </style> |
12 <div style="font-family: corsOK;"> | 16 <div style="font-family: corsOK;"> |
13 This text should be rendered with ahem font. | 17 This text should be rendered with ahem font. |
14 </div> | 18 </div> |
15 <div style="font-family: corsNG;"> | 19 <div style="font-family: corsNG;"> |
16 This text should NOT be rendered with ahem font. | 20 This text should NOT be rendered with ahem font. |
17 </div> | 21 </div> |
| 22 <div style="font-family: redirectCorsNG;"> |
| 23 This text should NOT be rendered with ahem font. |
| 24 </div> |
18 <script> | 25 <script> |
19 if (window.testRunner) | 26 if (window.testRunner) |
20 testRunner.waitUntilDone(); | 27 testRunner.waitUntilDone(); |
21 | 28 |
22 document.fonts.ready.then(function() { | 29 document.fonts.ready.then(function() { |
23 if (window.testRunner) | 30 if (window.testRunner) |
24 testRunner.notifyDone(); | 31 testRunner.notifyDone(); |
25 }); | 32 }); |
26 </script> | 33 </script> |
OLD | NEW |