Sync web-platform-tests up to revision a5b95cb31914507088a4eda16f7674bbc6f3313f
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / html / semantics / embedded-content / the-object-element / object-in-object-fallback-2.html
1 <!doctype html>
2 <html>
3   <head>
4     <meta charset=utf-8>
5     <title></title>
6     <script src=/resources/testharness.js></script>
7     <script src=/resources/testharnessreport.js></script>
8     <script>
9       var loadedCount = 0;
10       var nestingTest = async_test("Test <object> nesting inside <object>");
11       onload = nestingTest.step_func_done(function() {
12         assert_equals(loadedCount, 12, "Should have loaded all should-load elements");
13       });
14     </script>
15     <style>
16       object { display: none }
17     </style>
18   </head>
19   <body>
20     <object data="../resources/should-load.html" style="width: 100px; height: 100px">
21       <object type="text/html" data="../resources/should-not-load.html"
22               test-description="<object> inside <object>"></object>
23     </object>
24     <object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test">
25       <object type="text/html" data="../resources/should-load.html"></object>
26     </object>
27     <object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test">
28       <div></div>
29       <object type="text/html" data="../resources/should-load.html"></object>
30     </object>
31     <object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test">
32       <div>
33         <object type="text/html" data="../resources/should-load.html"></object>
34       </div>
35     </object>
36     <object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test">
37       <object type="text/html" data="../resources/should-load.html"></object>
38       <object type="text/html" data="../resources/should-load.html"></object>
39       <object data="../resources/should-load.html">
40         <object type="text/html" data="../resources/should-not-load.html"
41                 test-description="<object> inside loaded <object> inside non-loaded <object>"></object>
42       </object>
43       <object data="data:application/x-does-not-exist,test">
44         <object type="text/html" data="../resources/should-load.html"></object>
45       </object>
46     </object>
47     <div>
48       <object data="../resources/should-load.html" style="width: 100px; height: 100px"></object>
49       <object type="text/html" data="../resources/should-load.html"></object>
50     </div>
51     <div>
52       <object type="text/html" data="../resources/should-load.html"></object>
53       <object data="../resources/should-load.html" style="width: 100px; height: 100px"></object>
54     </div>
55   </body>
56 </html>