OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <script src="/js-test-resources/ahem.js"></script> |
4 <style> | 5 <style> |
5 #clear-left { | 6 #clear-left { |
6 clear: left; | 7 clear: left; |
7 font: 20px/1 Ahem, sans-serif; | 8 font: 20px/1 Ahem, sans-serif; |
8 color: green; | 9 color: green; |
9 } | 10 } |
10 | 11 |
11 #clear-left > div { | 12 #clear-left > div { |
12 float: left; | 13 float: left; |
13 width: 200px; | 14 width: 200px; |
14 height: 20px; | 15 height: 20px; |
15 } | 16 } |
16 | 17 |
17 /* Cross-origin request is not OK because a "Access-Control-Allow-Origin:" h
eader is not returned. */ | 18 /* Cross-origin request is not OK because a "Access-Control-Allow-Origin:" h
eader is not returned. */ |
18 #shape-outside-disallow-origin-url { | 19 #shape-outside-disallow-origin-url { |
19 shape-outside: url("http://localhost:8080/security/resources/image-acces
s-control.php?file=../../resources/square100.png&allow=false"); | 20 shape-outside: url("http://localhost:8080/security/resources/image-acces
s-control.php?file=../../resources/square100.png&allow=false"); |
20 } | 21 } |
21 </style> | 22 </style> |
22 </head> | 23 </head> |
23 <body> | 24 <body> |
24 <p>Verify that images not allowed by CORS don't affect the layout.</p> | 25 <p>Verify that images not allowed by CORS don't affect the layout.</p> |
25 <div id="clear-left"><div id="shape-outside-disallow-origin-url"></div>X</di
v> | 26 <div id="clear-left"><div id="shape-outside-disallow-origin-url"></div>X</di
v> |
26 </body> | 27 </body> |
27 </html> | 28 </html> |
OLD | NEW |